mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Added some notes.
This commit is contained in:
parent
66166e3dd4
commit
8093424dbd
1 changed files with 15 additions and 0 deletions
15
cheat
15
cheat
|
@ -7,6 +7,19 @@ keyphrase = ' '.join(sys.argv[1:])
|
||||||
# create a dictionary of cheatsheets
|
# create a dictionary of cheatsheets
|
||||||
cheatsheets = {
|
cheatsheets = {
|
||||||
|
|
||||||
|
# @todo:
|
||||||
|
# - adb
|
||||||
|
# - apt-cache
|
||||||
|
# - dd
|
||||||
|
# - fdisk
|
||||||
|
# - mount
|
||||||
|
# - nc
|
||||||
|
# - rsync
|
||||||
|
# - shred
|
||||||
|
# - useradd / adduser
|
||||||
|
|
||||||
|
# @see: http://www.thegeekstuff.com/2010/11/50-linux-commands/
|
||||||
|
|
||||||
########## bash ###############################################################
|
########## bash ###############################################################
|
||||||
'bash' : '''
|
'bash' : '''
|
||||||
To implement a for loop:
|
To implement a for loop:
|
||||||
|
@ -133,6 +146,8 @@ tar -cjvf /path/to/foo.tgz /path/to/foo/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# @todo: demonstrate some keyphrase aliases here
|
||||||
|
|
||||||
# print help if requested
|
# print help if requested
|
||||||
if keyphrase in ['', 'help', '--help', '-h']:
|
if keyphrase in ['', 'help', '--help', '-h']:
|
||||||
cheatsheets_sorted = cheatsheets.keys()
|
cheatsheets_sorted = cheatsheets.keys()
|
||||||
|
|
Loading…
Reference in a new issue