Commit Graph

530 Commits

Author SHA1 Message Date
ImmortalPC ccf3eddba0 [Change] Add "not this dir" into find examples 2013-12-05 17:24:29 +01:00
Erethon 7afb33aee4 Update and some new examples
* Update a mistake in ifconfig
* Add example for a SOCKS proxy in ssh
* Add an example for mounting a NFS dir in mount
* Add a description for git blame
* Add some examples in grep
* Add example for specifing an interface in dhclient
* Add a description for apt-get install
* Add some commands in apt-cache
* Add an example of pretty printing jsons using python
2013-12-03 22:32:26 +02:00
Chris Lane d8ff70dd57 Merge pull request #133 from Mic92/patch-4
add crontab examples
2013-12-01 10:00:55 -08:00
Chris Lane 01b1cddd04 Merge pull request #132 from amitsaha/lsof_enhancements
Enhancements to 'lsof' cheatsheet.
2013-12-01 10:00:15 -08:00
Chris Lane ed4470e582 Merge pull request #134 from amitsaha/strace
Add cheatsheet for strace
2013-12-01 09:59:01 -08:00
Chris Lane 56cde2f6e5 Merge pull request #131 from lucaswerkmeister/patch-1
Add a gdb cheat sheet
2013-12-01 09:58:26 -08:00
Chris Lane 19505f5d7f Merge pull request #129 from ImmortalPC/master
Adding python (simple web server). Change netstat (deprecated).
2013-12-01 09:57:35 -08:00
Amit Saha d7bc5507ba Add cheatsheet for strace 2013-11-27 11:47:40 +10:00
Jörg Thalheim cfb9603439 crontab: fix typo in comment 2013-11-26 18:13:16 +01:00
Jörg Thalheim ccc3c0b878 add crontab examples 2013-11-26 14:30:46 +01:00
Amit Saha 94a147ba77 Enhancements to 'lsof' cheatsheet. 2013-11-26 13:20:24 +10:00
Lucas Werkmeister 1f2ae23628 Add a gdb cheat sheet 2013-11-25 23:19:11 +01:00
ImmortalPC c5ecad85fc [Change] GCC Add some samples 2013-11-25 20:20:12 +01:00
ImmortalPC 8a3cd5dff2 [Change] Add new example for wget 2013-11-25 20:07:32 +01:00
ImmortalPC f42d28088c [Change] grep Add find in files 2013-11-25 13:44:30 +01:00
ImmortalPC ad744eea9f [Python] Add basic SMTP server 2013-11-25 00:52:17 +01:00
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