2018-08-03 10:37:18 +03:00
|
|
|
Usage:
|
2019-02-16 22:53:18 +03:00
|
|
|
|
|
|
|
$ curl cheat.sh/TOPIC show cheat sheet on the TOPIC
|
|
|
|
$ curl cheat.sh/TOPIC/SUB show cheat sheet on the SUB topic in TOPIC
|
|
|
|
$ curl cheat.sh/~KEYWORD search cheat sheets for KEYWORD
|
|
|
|
|
|
|
|
Options:
|
2018-08-03 10:37:18 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
?OPTIONS
|
2018-08-03 10:37:18 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
q quiet mode, don't show github/twitter buttons
|
|
|
|
T text only, no ANSI sequences
|
|
|
|
style=STYLE color style
|
2018-08-03 10:37:18 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
c do not comment text, do not shift code (QUERY+ only)
|
|
|
|
C do not comment text, shift code (QUERY+ only)
|
|
|
|
Q code only, don't show text (QUERY+ only)
|
2018-08-03 10:37:18 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
Options can be combined together in this way:
|
2018-08-03 10:37:18 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
curl 'cheat.sh/for?qT&style=bw'
|
|
|
|
|
|
|
|
(when using & in shell, don't forget to specify the quotes or escape & with \)
|
2018-08-03 10:37:18 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
Special pages:
|
2018-08-03 10:37:18 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
:help this page
|
|
|
|
:list list all cheat sheets
|
|
|
|
:post how to post new cheat sheet
|
|
|
|
:cht.sh shell client (cht.sh)
|
|
|
|
:bash_completion bash function for tab completion
|
|
|
|
:styles list of color styles
|
|
|
|
:styles-demo show color styles usage examples
|
2018-08-03 10:37:18 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
Shell client:
|
2018-08-03 10:37:18 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
$ curl https://cht.sh/:cht.sh > ~/bin/cht.sh
|
|
|
|
$ chmod +x ~/bin/cht.sh
|
|
|
|
$ cht.sh python :learn
|
|
|
|
$ cht.sh --shell
|
2018-08-27 20:03:04 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
Tab completion:
|
2018-08-27 20:03:04 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
$ mkdir -p ~/.bash.d/
|
|
|
|
$ curl cheat.sh/:bash_completion > ~/.bash.d/cht.sh
|
|
|
|
$ . ~/.bash.d/cht.sh
|
|
|
|
$ echo '. ~/.bash.d/cht.sh' >> ~/.bashrc
|
2018-08-03 10:37:18 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
Editor integration:
|
2018-08-03 10:37:18 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
:emacs see the page for the Emacs configuration
|
|
|
|
:vim see the page for the Vim configuration
|
2018-08-27 20:03:04 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
Search:
|
2018-08-27 20:03:04 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
/~snapshot look for "snapshot" in the first level cheat sheets
|
|
|
|
/~ssh~passphrase several keywords can be combined together using ~
|
|
|
|
/scala/~closure look for "closure" in scala cheat sheets
|
|
|
|
/~snapshot/r look for "snapshot" in all cheat sheets recursively
|
2018-08-03 10:37:18 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
You can use special search options after the closing slash:
|
2018-08-27 20:03:04 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
/~shot/bi case insensitive (i), word boundaries (b)
|
2018-08-27 20:03:04 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
List of search options:
|
2018-08-27 20:03:04 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
b word boundaries
|
|
|
|
i case insensitive search
|
|
|
|
r recursive
|
2018-08-27 20:03:04 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
Programming languages topics:
|
2018-08-27 20:03:04 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
each programming language topic has the following subptopics:
|
2018-08-27 20:03:04 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
hello hello world + how to start the program
|
|
|
|
:learn big cheat sheet for learning language from scratch
|
|
|
|
:list list of topics
|
2018-08-27 20:03:04 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
Support programming languages:
|
2018-08-27 20:03:04 +03:00
|
|
|
|
2019-02-16 22:53:18 +03:00
|
|
|
go
|
|
|
|
scala
|
|
|
|
rust
|
|
|
|
python
|
|
|
|
php
|