Commit graph

251 commits

Author SHA1 Message Date
Cedric Dufour
705601f0b1 Added parallel (multi-threaded) processing 2015-09-04 10:06:37 +02:00
Aravinth Panchadcharam
4512a61086 New Sheet Added: Vagrant - A portable development environment 2015-08-24 21:07:55 +02:00
Josef Glatz
511c57f582 [DOCUMENTATION] Cmd 'ssh' copy files with gzipped on the fly 2015-08-06 14:46:21 +02:00
Josef Glatz
6ca4b6c8e7 [DOCUMENTATION] Cmd 'du' cumulative size cheat 2015-08-06 14:39:22 +02:00
Shadab Zafar
af354ba6a3 New Sheet: ffmpeg - fast audio video encoder 2015-08-03 17:51:52 +05:30
Shadab Zafar
196875a828 Git cheats: Shallow clones & Submodule update 2015-08-03 17:50:23 +05:30
Shadab Zafar
6cf69bc190 Git cheats: Change date of existing commit 2015-08-03 17:50:12 +05:30
Shadab Zafar
b477df20b2 New Sheet: man - an interface to reference manuals 2015-07-24 18:54:41 +05:30
Shadab Zafar
6304a65399 New Sheet: numfmt - convert numbers from/to human-readable strings 2015-07-24 18:53:50 +05:30
Shadab Zafar
bc40ced2c1 New Sheet: csplit - used to split a file into parts 2015-07-24 18:51:55 +05:30
Chris Lane
51b0b12663 Minor addition to git cheatsheet 2015-07-09 18:41:00 -04:00
Shadab Zafar
ae45265317 Two new cheats in date and ln sheets 2015-06-19 23:18:59 +05:30
Shadab Zafar
97dd037538 Fixup grammar in grep cheatsheet 2015-06-19 23:18:27 +05:30
Shadab Zafar
402d15e8d8 More git cheats 2015-06-19 23:11:48 +05:30
Chris Lane
aa9b3e8bb4 Merge pull request #225 from Mic92/master
add zip/unzip
2015-06-18 18:19:53 -04:00
Chris Lane
9db66dbaeb Merge pull request #217 from agxcul/master
add command [more] and some more example for command [awk]
2015-06-18 18:18:56 -04:00
Chris Lane
c906a394cc Merge pull request #221 from laomaiweng/cheatsheet-rpm-enhancements
`rpm` cheatsheet: small enhancements
2015-06-18 18:15:51 -04:00
Chris Lane
6ca560c1b7 Merge pull request #220 from dufferzafar/sheets
Added jq, jrnl sheets. Updated Git and Markdown.
2015-06-18 18:14:59 -04:00
Chris Lane
e75e9bb211 Whitespace edit 2015-06-18 18:06:25 -04:00
Chris Lane
dd93473464 Merge pull request #216 from salvorapi/master
First version of nova cheat
2015-06-18 18:05:39 -04:00
Chris Lane
0d6de64fc0 Merge pull request #224 from Mic92/patch-9
Add weechat
2015-06-18 18:02:43 -04:00
Chris Lane
26991977fd Merge pull request #222 from myfavouritekk/pip
Add the cheat sheet for pip.
2015-06-18 18:02:00 -04:00
Chris Lane
878e266f5b Merge pull request #223 from Raizo62/master
remove useless blank
2015-06-18 18:00:47 -04:00
Jörg Thalheim
59accc64f7 add zip/unzip 2015-06-13 09:40:59 +02:00
Jörg Thalheim
c18e475fd1 Add weechat 2015-06-08 21:03:33 +02:00
raizo62
2166a57ccd remove useless blank 2015-06-04 17:53:48 +00:00
Kai KANG
b2e1400bb6 Update pip: dealing with requirement files
add `pip freeze > requirements.txt` and `pip install -r requirements.txt`.
2015-06-02 07:30:34 +08:00
Kai KANG
30a49d3596 Add the cheat sheet for pip. 2015-05-28 13:46:28 +08:00
quentin
86ba1ad9e6 cheat/cheatsheets/rpm: small enhancements 2015-05-21 23:17:34 +02:00
Shadab Zafar
820de5dba8 Add Image syntax to markdown 2015-05-20 01:46:03 +05:30
Shadab Zafar
33f0dc346b jrnl is an application to store your life journal
...in plain text files

https://github.com/maebert/jrnl
2015-05-20 01:46:03 +05:30
Shadab Zafar
889c8ef8fe Added two funky git cheats! 2015-05-20 01:46:03 +05:30
Shadab Zafar
434802341e jq is a command line json processor
Here is the awesome manual: http://stedolan.github.io/jq/manual/
2015-05-20 01:45:52 +05:30
Daniel D. Zhang
aba6fe5043 fix typo
reference: 
-O file
--output-document=file
    The documents will not be written to the appropriate files, but all will be concatenated together and
    written to file.  If - is used as file, documents will be printed to standard output, disabling link
    conversion.  (Use ./- to print to a file literally named -.)

    Use of -O is not intended to mean simply "use the name file instead of the one in the URL;" rather,
    it is analogous to shell redirection: wget -O file http://foo is intended to work like wget -O -
    http://foo > file; file will be truncated immediately, and all downloaded content will be written
    there.

    For this reason, -N (for timestamp-checking) is not supported in combination with -O: since file is
    always newly created, it will always have a very new timestamp. A warning will be issued if this
    combination is used.

    Similarly, using -r or -p with -O may not work as you expect: Wget won't just download the first file
    to file and then download the rest to their normal names: all downloaded content will be placed in
    file. This was disabled in version 1.11, but has been reinstated (with a warning) in 1.11.2, as there
    are some cases where this behavior can actually have some use.

    Note that a combination with -k is only permitted when downloading a single document, as in that case
    it will just convert all relative URIs to external ones; -k makes no sense for multiple URIs when
    they're all being downloaded to a single file; -k can be used only when the output is a regular file.
2015-05-10 13:54:49 +08:00
agxcul
86d1ce58a9 add command [more] and some more example for command [awk] 2015-05-06 15:14:49 +08:00
Salvo Rapisarda
fd7f31bf16 First version of nova cheat 2015-05-04 15:14:07 +02:00
Chris Lane
f39fad1324 Merge pull request #212 from myfavouritekk/paste
Add a cheatsheet for paste.
2015-04-15 16:40:43 -04:00
Chris Lane
4cf03c5363 Merge pull request #211 from Aayush-Kasurde/master
Added yum list command cheat
2015-04-15 16:38:52 -04:00
Kai KANG
afcd74c8bf Add cheatsheet for paste. 2015-03-31 17:52:08 +08:00
Aayush Kasurde
e27ce3f1f9 Added yum list command cheat 2015-03-10 08:04:47 +05:30
Chris Lane
e9b8f04c24 Bug fix
A bug was introduced in 2.1.6 that would prevent user-defined
cheatsheets from being edited more than once.
2015-02-11 21:45:32 -05:00
Chris Lane
c70dc002fa Issue #180
Now, whenever a cheatsheet is to be edited, if that cheatsheet does not
exist on the `DEFAULT_SHEET_PATH`, it is first copied there before being
opened for editing. This prevents system-wide cheatsheets from being
edited when using `cheat` as `root`.
2015-02-11 21:02:45 -05:00
Chris Lane
718ec4f685 Resolves #207
- Solves issue whereby global cheatsheets fail to save after editing

- `cheat` no longer asks a user if a global cheatsheet should be copied
  locally before editing, and instead just silently does so.
2015-02-10 19:35:14 -05:00
Chris Lane
a5352ad9e5 Trivial edits to uniq cheatsheet 2015-02-09 18:07:17 -05:00
Chris Lane
f5ee3d5e29 Merge branch 'master' of https://github.com/shigemk2/cheat into shigemk2-master
* 'master' of https://github.com/shigemk2/cheat:
  Refer sort -u
  Fix dc option
  uniq: add examples
2015-02-09 18:06:20 -05:00
Chris Lane
e64babc972 Trivial edits to cheatsheets. 2015-02-09 18:05:13 -05:00
Chris Lane
cd465ef84f Merge branch 'master' of https://github.com/Aayush-Kasurde/cheat into Aayush-Kasurde-master
* 'master' of https://github.com/Aayush-Kasurde/cheat:
  Added perforce commands
  Added udisksctl
  Added Journalctl commands
  Added zoneadm commands
2015-02-09 18:03:28 -05:00
Chris Lane
96e26a38d4 Added newline to end of dnf file. 2015-02-09 18:01:40 -05:00
Chris Lane
998ed00424 Merge branch 'dnf' of https://github.com/amitsaha/cheat into amitsaha-dnf
* 'dnf' of https://github.com/amitsaha/cheat:
  Add cheatsheet for dnf
2015-02-09 18:00:38 -05:00
Chris Lane
1fd03d3305 Merge pull request #205 from thylong/dpkg
Add cheat for dpkg
2015-02-09 17:58:24 -05:00
Chris Lane
77cba58599 Merge pull request #203 from amitsaha/docker_update
docker: add 'docker exec'
2015-02-09 17:57:39 -05:00
Chris Lane
c5a738a8b1 Merge pull request #199 from Mic92/patch-8
ip: better route example
2015-02-09 17:56:57 -05:00
Aayush Kasurde
250a265b25 Added perforce commands 2015-01-27 22:07:43 +05:30
Amit Saha
c232721119 Add cheatsheet for dnf 2015-01-22 16:30:49 +10:00
Aayush Kasurde
55492c50ac Added udisksctl 2015-01-20 21:34:11 +05:30
Théotime Lévêque
d9df28e3f2 Update dpkg 2015-01-20 12:22:47 +01:00
Theotime LEVEQUE
710c7bcf70 Add cheat for dpkg 2015-01-20 01:42:26 +01:00
Aayush Kasurde
efba736aee Added Journalctl commands 2015-01-18 20:03:42 +05:30
Aayush Kasurde
95774db7c5 Added zoneadm commands 2015-01-14 21:12:23 +05:30
Amit Saha
da63c5d27f docker: add 'docker exec' 2015-01-13 13:51:35 +10:00
shigemk2
2e1cda114a Refer sort -u 2015-01-12 21:29:35 +09:00
shigemk2
353fe48d60 Fix dc option 2015-01-12 21:17:55 +09:00
shigemk2
a96bd229a6 uniq: add examples 2015-01-10 00:28:18 +09:00
Alessio Bogon
4d57f529c9 Use entry_points instead of scripts in setup.py
This allows a fine-grained control of the dependencies, because it generates a wrapper script
that calls the specifiend function (i.e., main inside cheat/app.py)
2015-01-09 00:36:49 +01:00
Chris Lane
be2cb6e632 Version 2.1.3
- Added new cheatsheets
- Appended to `.gitignore`
2015-01-05 20:44:25 -05:00
Chris Lane
426b0aaa0d Merge pull request #197 from thylong/gzip
Add cheat for gzip
2015-01-05 20:39:35 -05:00
Chris Lane
9041c57d21 Merge pull request #200 from poliveira89/new_cheatsheets
New cheatsheets
2015-01-05 20:38:19 -05:00
thylong
1dd9d85509 Merge branch 'gzip' of github.com:thylong/cheat into gzip
Conflicts:
	cheat/cheatsheets/gzip
2015-01-04 13:24:52 +01:00
thylong
9506167af8 Add cheat for gzip 2015-01-04 13:23:47 +01:00
Jörg Thalheim
27482cbabd ip: better route example
Assigning a subnet is already covered in the example below. Setting a default route via a router is the most common use case of ip route IMHO.
2014-12-30 10:07:13 +01:00
Chris Lane
c4a5ca3900 Merge pull request #198 from thylong/ssh_forward
Update cheat ssh
2014-12-29 21:37:39 -05:00
Chris Lane
03b587f538 Merge pull request #196 from Mic92/patch-7
ss
2014-12-29 21:36:59 -05:00
Chris Lane
e4d7722476 Merge pull request #195 from Mic92/master
ping6
2014-12-29 21:36:18 -05:00
thylong
956ce7fadd Update cheat ssh 2014-12-26 15:57:01 -05:00
thylong
57876ed0e7 Add cheat for gzip 2014-12-26 15:46:48 -05:00
Jörg Thalheim
58abb16ca1 ss 2014-12-24 21:42:16 +01:00
Jörg Thalheim
54e30022f0 ping6: fix typo 2014-12-24 18:08:56 +01:00
Jörg Thalheim
c412cd0534 ping6 2014-12-24 12:15:03 +01:00
Jörg Thalheim
2d67038188 smbclient 2014-12-24 12:13:29 +01:00
Chris Lane
f772ef167e Merge pull request #190 from ImmortalPC/master
[NMAP] Change comment "300" => X
2014-12-09 20:39:29 -05:00
poliveira89
61458933eb SSH cheatsheet updated: support for SSH tunnels between local host and remote host 2014-11-22 17:15:51 +00:00
poliveira89
6f579f9234 New cheatsheet added: support for Bower (frontend package manager) 2014-11-22 17:09:58 +00:00
Amit Saha
77429d9ccc Add cheat for docker 2014-10-23 14:48:25 +10:00
ImmortalPC
4ea583503b [NMAP] Change comment "300" => X 2014-10-20 19:31:31 +02:00
Chris Lane
6b8ecd6b5c Cherry-picking changes from #185
@zhujian0805 contributed some excellent cheatsheets in #185, but some
binary files seem to have gotten mixed into the commit as well. This
commit cherry-picks the cheatsheet file changes from that PR while
leaving behind the cruft.

Also performed minor editing on some of the cheatsheets.
2014-10-19 11:43:43 -04:00
Chris Lane
6efae113cf Merge branch 'master' of github.com:erikcox/cheat into erikcox-master
* 'master' of github.com:erikcox/cheat:
  Added a condition in prompt_yes_or_no() to use input or raw_input
  First attempt at making utils.py compatible with Python 2 and 3.
2014-10-19 11:02:32 -04:00
Chris Lane
ed91f9fa37 Merge branch 'master' of github.com:ImmortalPC/cheat into ImmortalPC-master
* 'master' of github.com:ImmortalPC/cheat:
  [GREP,NMAP,RM,WGET] Add new cheats
2014-10-18 18:41:32 -04:00
Chris Lane
0720d0fdc2 Merge pull request #188 from Mic92/patch-5
mount: add bind mount
2014-10-18 18:38:56 -04:00
Jörg Thalheim
873968903a mount: add bind mount 2014-10-12 13:16:53 +02:00
Erik Cox
dde3acf109 Added a condition in prompt_yes_or_no() to use input or raw_input 2014-09-13 15:46:57 -07:00
Erik Cox
d1d5d84e4c First attempt at making utils.py compatible with Python 2 and 3. 2014-09-13 15:09:40 -07:00
Brandon Pierce
41d2a810e6 add debugging examples for bash
add new command route
2014-08-13 10:49:56 -07:00
Chris Lane
28478ff257 Merge pull request #181 from laomaiweng/cheatsheets
Additional cheatsheets: rpm, hub
2014-08-11 21:34:12 -04:00
barhamd
ce611eaceb Never parse ls.
http://mywiki.wooledge.org/ParsingLs

It's about the only thing I really know about bash.
2014-08-08 11:52:43 -06:00
quentin
ab2d96edb4 Add new readline cheatsheet 2014-08-07 12:32:34 +02:00
quentin
b193112a13 Add new ['hub'](https://hub.github.com/) cheatsheet 2014-08-07 12:00:48 +02:00
quentin
db92b4c5d8 Add new 'rpm' cheatsheet 2014-08-07 11:59:59 +02:00
Chris Lane
e391cf2f01 Issue #172
Previously, `cheat` would exit if run by `root`. The rationale was:

If `cheat` was run by an unprivileged user (`chris`, for example), the
`$DEFAULT_CHEAT_DIR` would default to `/home/chris/.cheat`. If cheat was
run via `sudo`, however, the `$DEFAULT_CHEAT_DIR` would suddenly be
`/root/.cheat`.

Presuming that those individual user cheat dirs actually contained cheat
sheets, this could cause confusion, because cheat sheets accessible to
one user (`chris`) would not be accessible to the other (`root`). Thus,
cheatsheets would appear and disappear, depending on which user was
running `cheat`. (This would only be an issue, of course, for cheat
sheets that existed within the respective users' cheat dirs. System-wide
cheat sheets would be unaffected.)

`cheat` was thus programmed to gracefully fail when run as `root` to
prevent that possible confusion.

However, I'm backing away from that reasoning, because:

1. It's causing a headache for real users who'd like to run `cheat` as
root

2. Other venerable programs (`vim`, etc.) suffer from the same problem,
but nobody seems to mind enough to do anything about it. Thus, I suppose
the laissez-faire approach is essentially the sanctioned "solution" to
this problem.

3. Users sufficently troubled by this confusion may rememdy the problem
manually by setting environment variables (`$DEFAULT_CHEAT_DIR`, etc.)

Thus, `cheat` no longer complains if run by `root`.

Version-bumped to 2.1.0.
2014-08-06 21:56:19 -04:00
Chris Lane
3e287e62b8 Merge pull request #174 from juliushaertl/master
Add cheat for iproute2
2014-08-06 21:23:18 -04:00
Baptiste D.
f125db6f45 Update apt-get
Mistake on #7
2014-08-06 09:25:08 +02:00