From d2074e447a3bf82515868a9d6b1fdff9fe935e06 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Mon, 8 May 2017 23:17:26 +0200 Subject: [PATCH 1/4] minor formating issues --- README.md | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 41342a3..4810db5 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ Usage examples: - ``` +``` $ curl cheat.sh/rsync $ curl cheat.sh/btrfs~volume $ curl cheat.sh/~snapshot $ curl cheat.sh/scala/Functions $ curl cheat.sh/scala/Functions~map - ``` +``` ## Options @@ -26,53 +26,54 @@ Usage examples: Special URLs: - ``` +``` /:help # show help page /:post # how to post new cheat sheets /:list # list all known cheat sheets - ``` +``` ## Tab completion - ``` +``` $ curl cheat.sh/:bash_completion > ~/.bash.d/cheat.sh $ . ~/.bash.d/cheat.sh $ # add . ~/.bash.d/cheat.sh to ~/.bashrc - ``` +``` ## Search To search for a keyword, use the query: - ``` +``` /~keyword - ``` +``` In this case search is not recursive — it is conducted only in a pages of the specified level. For example: - ``` +``` /~snapshot look for snapshot in the first level cheat sheets /scala/~currying look for currying in scala cheat sheets - ``` +``` For a recursive search in all cheat sheets, use double slash: - ``` - //~snapshot look for snapshot in all cheat sheets - ``` +``` + /~snapshot/r look for snapshot in all cheat sheets +``` You can use special search options after the closing slash: - ``` +``` /~shot/bi case insensitive (i), word boundaries (b) - ``` +``` List of search options: ``` i case insensitive search b word boundaries + r recursive search ``` ## Cheat sheets sources From 4e4be173a220085b1459707496cb7f1ea1ead5d6 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Mon, 8 May 2017 23:18:11 +0200 Subject: [PATCH 2/4] minor formating issues --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4810db5..6ddecce 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,9 @@ Usage examples: ## Options +``` T omit terminal sequences (no colors; can be pasted in an editor) +``` ## Special URLs @@ -70,11 +72,11 @@ You can use special search options after the closing slash: List of search options: - ``` +``` i case insensitive search b word boundaries r recursive search - ``` +``` ## Cheat sheets sources From f755867df535441005223905be5ee74ac576b8d4 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Mon, 8 May 2017 23:24:10 +0200 Subject: [PATCH 3/4] Added links to the upstream repositories --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6ddecce..5fb6edc 100644 --- a/README.md +++ b/README.md @@ -83,14 +83,14 @@ List of search options: cheat.sh uses several community driven repositories of cheat sheets: -* cheat.sheets [1 contributor][0 stars][May 1, 2017] +* [cheat.sheets](https://github.com/chubin/cheat.sheets) [1 contributor][0 stars][May 1, 2017] External repositories: -* tldr-pages/tldr [331 contributors][9.222 stars][Dec 8, 2013] -* cheat [93 contributors][3.144 stars][Jul 28, 2013] -* a8m/go-lang-cheat-sheet [23 contributors][2.009 stars][Feb 9, 2014] -* adambard/learnxinyminutes-docs [985 contributors][4.405 stars][Jun 23, 2013] +* [tldr-pages/tldr](https://github.com/tldr-pages/tldr) [331 contributors][9.222 stars][Dec 8, 2013] +* [chrisallenlane/cheat](https://github.com/chrisallenlane/cheat) [93 contributors][3.144 stars][Jul 28, 2013] +* [a8m/go-lang-cheat-sheet](https://github.com/a8m/go-lang-cheat-sheet) [23 contributors][2.009 stars][Feb 9, 2014] +* [adambard/learnxinyminutes-docs](https://github.com/adambard/learnxinyminutes-docs) [985 contributors][4.405 stars][Jun 23, 2013] ## How to add a cheat sheet @@ -98,8 +98,8 @@ If you want to add a cheat sheet, you have one of the following ways: * Add it to one of the external cheat sheets repositories; you should decide on your own what is the best repository for your cheat sheet; -* Add it to the local cheat.sh repository (cheat.sheets) on github (fork, commit, pull request); -* Post it on cheat.sh using curl or a web browser (cheat.sh/:post). +* Add it to the local cheat.sh repository ([cheat.sheets](https://github.com/chubin/cheat.sheets)) on github (fork, commit, pull request); +* Post it on cheat.sh using curl or a web browser ([cheat.sh/:post](http://cheat.sh/:post)). If you want to change an existing cheat sheet, you have to find the original repository (when you open a cheat sheet in a browser, From 9dd4e6d5f496b9aeb7037ef995ef57680b507673 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Mon, 8 May 2017 23:26:28 +0200 Subject: [PATCH 4/4] added banner --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 5fb6edc..d508fc4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ +``` + + oooo . oooo + `888 .o8 `888 + .ooooo. 888 .oo. .ooooo. .oooo. .o888oo .oooo.o 888 .oo. +d88' `"Y8 888P"Y88b d88' `88b `P )88b 888 d88( "8 888P"Y88b +888 888 888 888ooo888 .oP"888 888 `"Y88b. 888 888 +888 .o8 888 888 888 .o d8( 888 888 . .o. o. )88b 888 888 +`Y8bod8P' o888o o888o `Y8bod8P' `Y888""8o "888" Y8P 8""888P' o888o o888o + + +``` ## Features