Commit Graph

752 Commits

Author SHA1 Message Date
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
Chris Lane
b2f706ac18 Merge pull request #111 from jonlabelle/master
Add cheatsheet and examples for curl.
2013-10-23 18:29:23 -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
Chris Lane
350a4ee863 Merge pull request #105 from gbremer/mkdir-commands
Adding mkdir cheat
2013-09-23 17:36:35 -07:00