From 6f579f9234a563c0735a3b4c87b5e8e3e6de39a8 Mon Sep 17 00:00:00 2001 From: poliveira89 Date: Sat, 22 Nov 2014 17:09:58 +0000 Subject: [PATCH 1/2] New cheatsheet added: support for Bower (frontend package manager) --- cheat/cheatsheets/bower | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 cheat/cheatsheets/bower diff --git a/cheat/cheatsheets/bower b/cheat/cheatsheets/bower new file mode 100644 index 0000000..da29ebd --- /dev/null +++ b/cheat/cheatsheets/bower @@ -0,0 +1,26 @@ +# Install a package locally +bower install + +# Install a package locally directly from github +bower install / + +# Install a specific package locally +bower install # + +# Install a package locally and save installed package into bower.json +bower install --save + +# Retrieve info of a particular package +bower info + +# List local packages +bower list + +# Search for a package by name +bower search + +# Update a package to their newest version +bower update + +# Remove a local package +bower uninstall From 61458933ebefd6403d672a32ea42eaebcb3e9ab6 Mon Sep 17 00:00:00 2001 From: poliveira89 Date: Sat, 22 Nov 2014 17:15:51 +0000 Subject: [PATCH 2/2] SSH cheatsheet updated: support for SSH tunnels between local host and remote host --- cheat/cheatsheets/ssh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheat/cheatsheets/ssh b/cheat/cheatsheets/ssh index ce11b52..e9ba18f 100644 --- a/cheat/cheatsheets/ssh +++ b/cheat/cheatsheets/ssh @@ -10,6 +10,9 @@ ssh -t user@example.com 'the-remote-command' # To tunnel an x session over SSH: ssh -X user@example.com +# Redirect traffic with a tunnel between local host (port 8080) and a remote host (remote.example.com:5000) through a proxy (personal.server.com): +ssh -f -L 8080:remote.example.com:5000 user@personal.server.com -N + # To launch a specific x application over SSH: ssh -X -t user@example.com 'chromium-browser'