mirror of https://github.com/cheat/cheat.git
Added some notes.
This commit is contained in:
parent
66166e3dd4
commit
8093424dbd
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 New Issue