mirror of
https://github.com/cheat/cheat.git
synced 2025-09-01 09:38:29 +02:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
be2cb6e632 | |||
426b0aaa0d | |||
9041c57d21 | |||
1dd9d85509 | |||
9506167af8 | |||
57876ed0e7 | |||
61458933eb | |||
6f579f9234 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
*.pyc
|
||||
MANIFEST
|
||||
build
|
||||
dist
|
||||
|
@ -38,7 +38,7 @@ from docopt import docopt
|
||||
|
||||
if __name__ == '__main__':
|
||||
# parse the command-line options
|
||||
options = docopt(__doc__, version='cheat 2.1.2')
|
||||
options = docopt(__doc__, version='cheat 2.1.3')
|
||||
|
||||
# list directories
|
||||
if options['--directories']:
|
||||
|
26
cheat/cheatsheets/bower
Normal file
26
cheat/cheatsheets/bower
Normal file
@ -0,0 +1,26 @@
|
||||
# Install a package locally
|
||||
bower install <package-name>
|
||||
|
||||
# Install a package locally directly from github
|
||||
bower install <user>/<repo>
|
||||
|
||||
# Install a specific package locally
|
||||
bower install <package-name>#<version>
|
||||
|
||||
# Install a package locally and save installed package into bower.json
|
||||
bower install <package-name> --save
|
||||
|
||||
# Retrieve info of a particular package
|
||||
bower info <package-name>
|
||||
|
||||
# List local packages
|
||||
bower list
|
||||
|
||||
# Search for a package by name
|
||||
bower search <package-name>
|
||||
|
||||
# Update a package to their newest version
|
||||
bower update <package-name>
|
||||
|
||||
# Remove a local package
|
||||
bower uninstall <package-name>
|
17
cheat/cheatsheets/gzip
Normal file
17
cheat/cheatsheets/gzip
Normal file
@ -0,0 +1,17 @@
|
||||
# To create a *.gz compressed file
|
||||
gzip test.txt
|
||||
|
||||
# To create a *.gz compressed file to a specific location using -c option (standard out)
|
||||
gzip -c test.txt > test_custom.txt.gz
|
||||
|
||||
# To uncompress a *.gz file
|
||||
gzip -d test.txt.gz
|
||||
|
||||
# Display compression ratio of the compressed file using gzip -l
|
||||
gzip -l *.gz
|
||||
|
||||
# Recursively compress all the files under a specified directory
|
||||
gzip -r documents_directory
|
||||
|
||||
# To create a *.gz compressed file and keep the original
|
||||
gzip < test.txt > test.txt.gz
|
@ -13,6 +13,10 @@ 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'
|
||||
|
||||
|
Reference in New Issue
Block a user