Commit Graph

647 Commits

Author SHA1 Message Date
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
417f47f037 Version bump 2015-04-15 16:43:47 -04: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
d14c759a48 Merge pull request #210 from chrisallenlane/issue-180
Issue #180
2015-02-11 21:05:12 -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
ff8ba4e717 Merge pull request #209 from chrisallenlane/edit-after-copy
Resolves #207
2015-02-10 19:37:05 -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
3d8343a878 Version bump 2015-02-09 18:10:08 -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
Alessio Bogon
5caa8fed38 Improve setup.py description 2015-01-09 00:22:57 +01:00
Alessio Bogon
69f91e0cf4 Exploit setuptools package_data to include cheats 2015-01-09 00:08:38 +01:00
Alessio Bogon
fdbc8909cc Use find_packages from setuptools to identify packages 2015-01-08 23:58:35 +01:00
Alessio Bogon
76a91ce358 Use setuptools insted of distutils.
Distutils is old and basic, setuptools is the current preferred way.
See https://python-packaging-user-guide.readthedocs.org/en/latest/current.html
2015-01-08 23:54:12 +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
03bb651bf0 Version bump 2014-12-29 21:45:46 -05: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
Chris Lane
3807aa5433 Merge pull request #194 from Mic92/patch-6
smbclient
2014-12-29 21:35:40 -05:00