ImmortalPC
663d72012d
[Add] dd
2013-11-18 10:08:18 +01:00
ImmortalPC
6762bae866
Add warning on netstat: netstat is deprecated and add the new command.
2013-11-13 23:07:00 +01:00
ImmortalPC
3b48257b45
Correct description for python
2013-11-13 22:55:19 +01:00
ImmortalPC
a200fdd52d
Correct description for python
2013-11-13 22:52:06 +01:00
ImmortalPC
ef644d42ec
Add python
2013-11-13 22:48:32 +01:00
Chris Lane
d8c723681a
Graceful failure on failed copy to DEFAULT_CHEAT_DIR
...
Pull request #108 added the option to automatically copy an
otherwise-uneditable cheatsheet to your DEFAULT_CHEAT_DIR upon an edit
request. This is a minor tweak that implements some graceful failing if
the DEFAULT_CHEAT_DIR does not exist.
2013-11-11 18:10:00 -05:00
Chris Lane
3234d21654
Fixing filename error in setup.py
...
I slightly borked a merge conflict a moment ago.
2013-11-11 17:48:06 -05:00
Chris Lane
6cae837a2f
Merge branch 'master' of https://github.com/0rax/cheat into 0rax-master
...
* 'master' of https://github.com/0rax/cheat :
change block generator not to held block is they are empty + minor pep8 refacto (pylint:8.85/10)
remove debug
indent block fail :x, no more triple output
Some minor modification (open inside the generator for better readability) + one bug fixe (the last block wasnt yiel by the generator)
Following #128 talk about how output should be made for search. Just changed the way on how the search function output the result, no more ala grep output. Cheatsheets are now parsed [by CheatSheets.__parse_cheat_command_block(self, cheat_fp)] into block (separated by newline), i have seen that all block in cheatsheets are delimited by a blank line, so instead of parsing from first consecutive # to last consecutive command, an output that is not used by all sheets (reference to "7z" cheatfile). And so the block are parsed by begin of the document to blanck line to end of the document. Finally the output is made by indenting the block content by 4 spaces + the title of the sheet on the top. This is a way to handle subcommands in my mind (search "git commit" and you now have all what you want)
Added search function into cheat, used a grep like output, if needed it could be changed, discussion is open inside #128 issue
fix edit autocomplete (just dont show description of -e/--edit option and i dont know why
Add hint to use sudo when creation fail of sheet.
In response to Issue #108 : Added option to copy sheet while not editable.
Added autocompletion for fish shell
Conflicts:
setup.py
2013-11-11 17:42:48 -05:00
Chris Lane
e2d10680db
Trivial formatting changes on vim cheatsheet
...
Changed some tabs to spaces, etc.
2013-11-11 17:34:45 -05:00
Chris Lane
967fa0cedf
Merge branch 'master' of https://github.com/7histle/cheat into 7histle-master
...
* 'master' of https://github.com/7histle/cheat :
some new mov vim cmds
2013-11-11 17:33:49 -05:00
Chris Lane
b9c60a530a
Merge pull request #117 from iamsudip/gitpatch2
...
Added cheats
2013-11-11 14:30:35 -08:00
Chris Lane
73a8b99110
Merge pull request #126 from Mic92/patch-3
...
wget: continue flag
2013-11-11 14:29:25 -08:00
Chris Lane
3b604d0baa
Merge pull request #127 from Mic92/master
...
bash: extend switch case example
2013-11-11 14:28:30 -08:00
0rax
fc2bb05f7b
change block generator not to held block is they are empty + minor pep8 refacto (pylint:8.85/10)
2013-11-07 11:23:51 +01:00
0rax
b264c19491
remove debug
2013-11-07 00:42:37 +01:00
0rax
4c5bd8efa5
indent block fail :x, no more triple output
2013-11-07 00:41:36 +01:00
0rax
69428a7279
Some minor modification (open inside the generator for better readability) + one bug fixe (the last block wasnt yiel by the generator)
2013-11-07 00:34:37 +01:00
0rax
d85fab763b
Following #128 talk about how output should be made for search. Just changed the way on how the search function output the result, no more ala grep output.
...
Cheatsheets are now parsed [by CheatSheets.__parse_cheat_command_block(self, cheat_fp)] into block (separated by newline), i have seen that all block in cheatsheets are delimited by a blank line, so instead of parsing from first consecutive # to last consecutive command, an output that is not used by all sheets (reference to "7z" cheatfile).
And so the block are parsed by begin of the document to blanck line to end of the document.
Finally the output is made by indenting the block content by 4 spaces + the title of the sheet on the top.
This is a way to handle subcommands in my mind (search "git commit" and you now have all what you want)
2013-11-07 00:23:54 +01:00
0rax
b1212052f7
Added search function into cheat, used a grep like output, if needed it could be changed, discussion is open inside #128 issue
2013-11-06 00:36:49 +01:00
Jörg Thalheim
3b0535833b
bash: extend switch case example
2013-11-03 20:26:56 +01:00
Jörg Thalheim
08f28b5468
wget: continue flag
2013-11-03 20:19:27 +01:00
Chris Lane
e81088d379
Merge pull request #120 from Mic92/patch-2
...
openssl: command to show certificate infos
2013-11-03 10:54:34 -08:00
Chris Lane
931ce7a579
Merge pull request #125 from fmunch/tail
...
Added tail cheatsheet
2013-11-03 10:52:26 -08:00
Chris Lane
e17fa47655
Merge pull request #119 from amitsaha/systemctl
...
systemctl cheat
2013-11-03 10:51:43 -08:00
Florent Munch
8d5954268d
Added tail cheatsheet
2013-11-01 15:42:56 +01:00
7histle
b8eed82e84
some new mov vim cmds
2013-10-31 19:09:51 +04:00
Jörg Thalheim
9f50f3b310
openssl: move note about self-signed certificates up
...
commit b848b2a607
inserted additional commands to show certificate, which are related to the comment.
2013-10-28 18:22:55 +01:00
Jörg Thalheim
b848b2a607
openssl: command to show certificate infos
...
Did you ever was on a server, but did not remember, what the certificate is for?
2013-10-28 13:16:01 +01:00
Amit Saha
bbbcfe98f9
systemctl cheat
2013-10-28 10:25:34 +10:00
iamsudip
c7f5215dfb
Added cheats
2013-10-24 09:31:42 +05:30
Chris Lane
c6441524b0
Git cheatsheet: trivial changes
...
Slightly reorganized the order in which some of the examples were
presented.
2013-10-23 22:06:48 -04:00
Chris Lane
fb5721f887
Merge branch 'master' of https://github.com/Ashernor/cheat into Ashernor-master
...
* 'master' of https://github.com/Ashernor/cheat :
Adding wget and curl cheats and updating git cheat
Conflicts:
cheatsheets/curl
2013-10-23 22:04:31 -04:00
Chris Lane
59ba9e2749
Merge pull request #107 from a-sk/fix-zsh-autocompletion
...
Fix zsh autocompletion
2013-10-23 18:35:47 -07:00
Chris Lane
7bbe9279e1
Merge pull request #114 from iamsudip/gitcpatch
...
Updated git cheatsheet little
2013-10-23 18:34:11 -07:00
Chris Lane
eb4e396c98
Merge pull request #116 from puchrojo/patch-1
...
Update README.md
2013-10-23 18:31:55 -07:00
Chris Lane
64a1e825a9
Merge pull request #115 from barisinanc/master
...
Fix on vim cheatsheet
2013-10-23 18:30:42 -07:00
puchrojo
500a205c38
Update README.md
...
sudo apt-get install python-pip
2013-10-23 17:59:56 +02:00
Baris Inanc
d491b342cc
Fix on vim cheatsheet
2013-10-21 09:26:35 +03:00
iamsudip
acea96b02d
Updated git cheatsheet little
2013-10-19 13:01:02 +05:30
0rax
b1df8fe3cc
fix edit autocomplete (just dont show description of -e/--edit option and i dont know why
2013-10-11 19:15:07 +02:00
0rax
53978fa86f
Add hint to use sudo when creation fail of sheet.
2013-10-11 18:56:03 +02:00
0rax
fc4b047958
In response to Issue #108 : Added option to copy sheet while not editable.
2013-10-11 18:32:21 +02:00
ashernor
6c9ac348b5
Adding wget and curl cheats and updating git cheat
2013-10-11 18:31:40 +02:00
0rax
b6e73539bd
Added autocompletion for fish shell
2013-10-11 16:26:24 +02:00
Jon LaBelle
4927eacac0
Add cheatsheet and examples for curl.
2013-10-10 16:03:30 -05:00
Chris Lane
f5a7c30dc4
Merge pull request #110 from TiTi/master
...
Add cheatsheets (lsof, netstat, nmap, pdftk, ps, sam2p [new])
2013-10-08 16:58:43 -07:00
Chris Lane
9870deee6f
Cheatsheets: minor tweaks
...
Made minor changes to the ls and rm cheatsheets.
2013-10-08 19:52:46 -04:00
TiTi
9d1a65b4bb
Add cheatsheets
2013-10-09 00:16:31 +02:00
TiTi
97182d4cf1
Add a troubleshooting section (python 2.6 doesn't comes with the argparse module)
2013-10-08 23:55:25 +02:00
ashernor
d9bce2f3c4
add cheatsheet for df iwconfig ls and rm
2013-10-06 19:47:15 +02:00
a-sk
b5ed21d5b7
Prepand _ to cheat.zsh to make zsh autocompletions works
2013-10-03 23:58:17 +04:00
a-sk
e087674668
Fix zsh autocompletion file
2013-10-03 23:55:52 +04:00
Chris Lane
545c35722a
Merge branch 'master' of https://github.com/0rax/cheat into 0rax-master
...
* 'master' of https://github.com/0rax/cheat :
Added 1 check for EDITOR var, if EDITOR is set to "" + added try catch to catch subprocess error like EDITOR variable pointing to a non installed editor
Split EDITOR variable to prevent error on popen while using EDITOR var with spaces
prepare to merge
Revert Print back to main, would be easier to integrate other positional option like that
2013-09-23 20:44:41 -04:00
Chris Lane
f38da5dc69
Trivial whitespace fix on cheatsheets/date
2013-09-23 20:42:26 -04:00
Chris Lane
176120c3d6
Merge branch 'date-cheat' of https://github.com/gbremer/cheat into gbremer-date-cheat
...
* 'date-cheat' of https://github.com/gbremer/cheat :
Adding date cheat
2013-09-23 20:42:00 -04:00
Chris Lane
2240eb6fd1
Trivial whitespace fix on chown cheatsheet.
2013-09-23 20:40:53 -04:00
Chris Lane
f52c0d59ba
Merge branch 'chown-chgrp' of https://github.com/gbremer/cheat into gbremer-chown-chgrp
...
* 'chown-chgrp' of https://github.com/gbremer/cheat :
Adding reference example to chown
2013-09-23 20:40:15 -04:00
Chris Lane
4bc2a27b57
Merge pull request #106 from engstrom/master
...
Added cheatsheet for the top command
2013-09-23 17:39:20 -07:00
Chris Lane
6eb7ec04ff
Merge pull request #102 from gbremer/ssh-keygen-fix
...
Fixing bit size to standard 4096
2013-09-23 17:37:37 -07:00
Chris Lane
b4d19eb4ae
Merge pull request #104 from gbremer/find-commands
...
Adding additional find commands
2013-09-23 17:37:12 -07:00
engstrom
75137cf507
Added cheatsheet for the top command
2013-09-23 18:27:30 -06:00
Grant Bremer
bcebf8dfea
Adding mkdir cheat
2013-09-21 16:31:17 -04:00
Grant Bremer
bbab921bf8
Adding additional find commands
2013-09-21 13:39:46 -04:00
Grant Bremer
73df1ae517
Adding date cheat
2013-09-21 13:23:23 -04:00
Grant Bremer
17b7fec47c
Fixing bit size to standard 4096
2013-09-21 13:15:09 -04:00
Grant Bremer
ffd8ec833f
Adding reference example to chown
2013-09-21 13:13:16 -04:00
0rax
50b04c52e1
Added 1 check for EDITOR var, if EDITOR is set to "" + added try catch to catch subprocess error like EDITOR variable pointing to a non installed editor
2013-09-20 02:27:06 +02:00
0rax
72b7af171d
Split EDITOR variable to prevent error on popen while using EDITOR var with spaces
2013-09-20 02:12:48 +02:00
Chris Lane
0cc76a78a1
Trivial changes to the head cheatsheet.
2013-09-19 19:45:28 -04:00
Chris Lane
0d60d6b558
Merge branch 'patch-6' of https://github.com/maggick/cheat into maggick-patch-6
...
* 'patch-6' of https://github.com/maggick/cheat :
correction
minor spell corrections
Create head
2013-09-19 19:42:52 -04:00
Chris Lane
963496db86
Restored -d functionality to original
...
During the last commit, the -d functionality was changed (likely
unintentionally) such that it outputted a raw Python list rather than
lines printed to stdout. I've restored the original functionality,
because the autocompletion scripts rely upon it.
2013-09-19 19:05:22 -04:00
Chris Lane
da2b0a872d
Deleted cruft
...
Deleted a 'foo' cheatsheet I accidentally committed while testing.
2013-09-19 18:45:43 -04:00
Chris Lane
bbed1c5851
Removed the -c option from argparse
...
A previous revision merged the functionality implemented by the -c and
-e options, but the -c option was reintroduced during the last revision
(probably) by accident. I took that out given that it no longer serves
a purpose.
2013-09-19 18:43:56 -04:00
roemer_j
c87e741f34
Made a OO refactoring, cleaner in my mind
2013-09-16 04:07:34 +02:00
roemer_j
1e1520ce56
Removed old help, just forgot to remove at first commit
2013-09-16 03:28:08 +02:00
roemer_j
526a9f595a
Refactored for argparse, the help output dont remain the same : too much sheets so I thought that do not print cheatlist every time could be a good things. Added description + epilogue (examples) to the standart argparse output.
2013-09-16 03:26:20 +02:00
Matthieu Keller
0501f8cbfe
correction
2013-09-15 17:34:15 +02:00
Johann Saunier
98b254b799
2to3
2013-09-15 11:02:27 +02:00
Chris Lane
5a026dfb41
Merge pull request #94 from fmunch/uname
...
Added uname cheatsheet
2013-09-14 18:20:40 -07:00
Baptiste Fontaine
d3914c0265
Typo fixed
2013-09-15 01:41:00 +02:00
Florent Munch
8dae29ad42
Added information for uname -v
2013-09-15 01:07:04 +02:00
Florent Munch
9f182d684d
Added uname cheatsheet
2013-09-15 00:57:06 +02:00
Florent Munch
71e9f11e83
Added od cheatsheet
2013-09-14 22:19:46 +02:00
Chris Lane
78532d804b
Fixed a typo in the README.
2013-09-14 12:23:19 -04:00
Chris Lane
f1cdfa6dd9
Updated the README.
2013-09-14 11:35:16 -04:00
Chris Lane
30e4078688
Merge branch 'master' of github.com:chrisallenlane/cheat
...
* 'master' of github.com:chrisallenlane/cheat:
tar: List content of gz/bz2 archives
2013-09-14 10:52:35 -04:00
Chris Lane
70e61d4e1f
Trivial changes. Removed a copyright notice that I hadn't noticed before, and deleted a superfluous 'exit()' call.
2013-09-14 10:52:11 -04:00
Chris Lane
305584196d
Merge pull request #92 from Mic92/patch-1
...
tar: List content of gz/bz2 archives
2013-09-14 07:37:22 -07:00
Chris Lane
587dbf3c11
Integrated the autocompletion scripts into the project, and rewrote the bash version to take advantage of the new -l option.
2013-09-14 10:27:53 -04:00
Chris Lane
b24e2b7fd2
Merge branch '0rax-master' into dev
...
* 0rax-master:
Added autocomplete for bash
2013-09-14 10:17:45 -04:00
Chris Lane
a07079957a
Resolved a merge conflict and made a minor commenting change.
2013-09-14 10:13:54 -04:00
Chris Lane
5639c995c3
Updated the help to reflect the new options.
2013-09-14 10:06:45 -04:00
Chris Lane
5e17da0246
Bug fix on the last commit.
2013-09-14 10:05:13 -04:00
Chris Lane
ba4093620a
Merged the 'create' and 'edit' functionality in order to DRY out the code a bit, because (IMO) the user experience is actually somewhat better when these two commands are merged.
2013-09-14 09:58:33 -04:00
Jörg Thalheim
a9922d7c7b
tar: List content of gz/bz2 archives
2013-09-14 15:48:57 +02:00
Chris Lane
34f3eafb1a
Created the -l option to list cheatsheets. I believe this is goign to be helpful to expose to scripts that are attempting to implement autocomplete.
2013-09-14 09:36:15 -04:00
Chris Lane
be7bc488b0
Breaking logic in the main function out into smaller components.
2013-09-14 09:23:33 -04:00
Chris Lane
1894ce6297
Making some minor code readability changes.
2013-09-14 09:06:30 -04:00
Chris Lane
48cdbdd836
Moved around some code blocks for the sake of readabilty.
2013-09-14 08:56:36 -04:00
Chris Lane
cef9cde3f3
Merge branch 'master' of https://github.com/0rax/cheat into 0rax-master
...
* 'master' of https://github.com/0rax/cheat :
Added autocomplete for bash
2013-09-14 08:40:35 -04:00
Chris Lane
4b7a1110f3
Merge pull request #91 from ImmortalPC/master
...
Add apparmor
2013-09-13 17:55:58 -07:00
Chris Lane
54547459b2
Merge pull request #84 from maggick/patch-11
...
Create sort
2013-09-13 17:52:29 -07:00
Chris Lane
dc300f83eb
Merge pull request #88 from ABorgna/master
...
Cheatsheet updates
2013-09-13 17:51:10 -07:00
Chris Lane
dc5dbdbb02
Merge pull request #89 from amitsaha/netstat_update
...
cheatsheets/netstat: Which process is listening on a port
2013-09-13 17:48:50 -07:00
ImmortalPC
385ac4d484
Add apt-get
2013-09-13 00:34:09 +02:00
ImmortalPC
2c86db1aac
Add a description
2013-09-13 00:26:42 +02:00
ImmortalPC
3deb00bb0a
Add apparmor
2013-09-13 00:21:50 +02:00
roemer_j
8b8d06f0e1
Added autocomplete for bash
2013-09-12 03:25:10 +02:00
Amit Saha
50fd4c6638
cheatsheets/netstat: Which process is listening on a port
2013-09-12 09:59:25 +10:00
ABorgna
acbd863277
Added ifconfig cheatsheet
2013-09-11 01:00:59 -03:00
ABorgna
60e2e66014
Added chown cheatsheet
2013-09-11 00:33:55 -03:00
ABorgna
a44c824f59
Added at cheatsheet
2013-09-11 00:21:44 -03:00
ABorgna
ba904a2bd6
Update vim
...
Using same format as 7z and emacs
2013-09-10 23:19:48 -03:00
b_b
eb00ab5d0b
add minimal screen cheatsheet
2013-09-10 17:04:40 +02:00
Matthieu Keller
d4a40a9b20
Update sort
2013-09-08 15:43:25 +02:00
Matthieu Keller
acb1a827ec
Create sort
2013-09-08 15:23:00 +02:00
Chris Lane
64cba079f9
Merge branch 'master' of https://github.com/ritchielincoln/cheat into ritchielincoln-master
...
* 'master' of https://github.com/ritchielincoln/cheat :
give user the option to edit cheatsheet when trying to create an existing cheatsheet
2013-09-07 18:43:13 -04:00
Ritchie Lincoln
ffcafa4480
give user the option to edit cheatsheet when trying to create an existing cheatsheet
2013-09-07 12:41:51 -06:00
Chris Lane
213c7a31e1
Updated the README to describe the -d flag and zsh coordination.
2013-09-07 14:38:13 -04:00
Chris Lane
b107019664
Merge branch 'minus-d-uses-new-line-sep' of https://github.com/a-sk/cheat into a-sk-minus-d-uses-new-line-sep
...
* 'minus-d-uses-new-line-sep' of https://github.com/a-sk/cheat :
-d now separates output using a newline
2013-09-07 13:34:45 -04:00
Chris Lane
11b680f49b
Merging.
2013-09-07 13:28:10 -04:00
Chris Lane
f0a7362149
Merge branch 'master' of https://github.com/shanahanjrs/cheat into shanahanjrs-master
...
* 'master' of https://github.com/shanahanjrs/cheat :
Added 'import argparse' to 'cheat'
Merge
Added GPL3 license to top of 'cheat' as required.
2013-09-07 13:23:39 -04:00
Chris Lane
db3fa0f8ad
Merge pull request #79 from maggick/patch-9
...
Update grep
2013-09-07 10:17:37 -07:00
Chris Lane
f51d57499d
Merge pull request #82 from adelviscio/patch-7
...
Removed cat
2013-09-07 10:14:27 -07:00
Chris Lane
3b3f96cfa2
Merge pull request #81 from ritchielincoln/master
...
added chmod to cheats
2013-09-07 10:12:59 -07:00
adelviscio
93bda9dc20
Removed cat
...
Piping cat to sed is an extra step. Sed can handle file arguments.
2013-09-07 00:29:49 -04:00
Ritchie Lincoln
bbabedb3ce
added chmod to cheats
2013-09-06 20:55:22 -06:00
Matthieu Keller
dc4846b635
Update grep
2013-09-06 16:53:36 +02:00
Matthieu Keller
948d407b65
Update aptitude
2013-09-06 16:51:31 +02:00
John Shanahan
4fe31ec479
Added 'import argparse' to 'cheat'
2013-09-05 22:50:55 -04:00
a-sk
ebdca118ea
-d now separates output using a newline
2013-09-04 09:52:54 +04:00
John Shanahan
139ff6c32e
Merge
2013-09-03 23:53:58 -04:00
John Shanahan
68de9655e5
Merge remote-tracking branch 'upstream/master'
2013-09-03 23:53:31 -04:00
Chris Lane
16244be4ea
Merge pull request #74 from Chimyx/master
...
Create Pacman (Arch linux package manager)
2013-09-03 17:11:01 -07:00
Chris Lane
d3e37c07d3
Merge pull request #70 from maggick/patch-4
...
correct and add vim shortcuts
2013-09-03 17:05:19 -07:00
Chris Lane
b360315298
Merge pull request #76 from thelinuxfr/patch-1
...
Add set editor to git
2013-09-03 17:02:19 -07:00
Chris Lane
3e05a463b6
Merge pull request #75 from bdien/master
...
Add tmux cheatfile
2013-09-03 17:01:23 -07:00
Chimyx
253eae2935
Correction in pacman file
2013-09-03 16:01:09 +02:00
LIETART Frederic
a45568ec5f
Add set editor to git
...
Add set editor to git
2013-09-03 13:25:16 +02:00
Benny
00549c1d8e
Use lowercase letters
2013-09-03 11:10:20 +02:00
Benny
1599c81e8f
Create tmux cheatfile
2013-09-03 11:08:25 +02:00
Manu
837042f718
Added yaourt (Yet AnOther User Repository Tool) cheatsheet
2013-09-03 05:39:24 +02:00
Manu
221c1ce190
Added pacman (archlinux PACkage MANager) cheatsheet
2013-09-03 05:19:43 +02:00
Matthieu Keller
fda6125657
minor spell corrections
2013-09-02 16:09:38 +02:00
Matthieu Keller
e557c26377
Create head
2013-09-02 16:08:09 +02:00
Matthieu Keller
ec5123d21e
Create aptitude
2013-09-02 16:05:43 +02:00
Matthieu Keller
d9acba7f14
correct and add vim shortcuts
2013-09-02 16:04:10 +02:00
John Shanahan
9b88afec33
Added GPL3 license to top of 'cheat' as required.
2013-09-02 07:39:43 -04:00
John Shanahan
6c6057563c
Added 'GPL3' to setup.py
2013-09-01 22:20:53 -04:00
Chris Lane
79831f81b7
Merge pull request #66 from adelviscio/patch-6
...
Added diff of two processes/commands
2013-09-01 18:15:48 -07:00