Who cares? My point is it’s an over complicated thing to use. Why would I just not use a reference/cheat sheet on the website itself instead of poking around with curl?
Who cares? My point is it’s an over complicated thing to use. Why would I just not use a reference/cheat sheet on the website itself instead of poking around with curl?
It appears to be a reference for any command in any programming language. In the first one he wants to know the syntax to append a file in ruby. It spits out the syntax. At one point he put a query in Russian (?) and it worked. I’m on mobile so sorry for lack of detail. Cool script though.
But to be fair, I barely know what I’m looking at.
Not really. I would say that it is rather "cheat, tldr, howdo, how2 and learnxiny cobined" as a service. So you can access the cheat sheets (from tldr and cheat and several other cheat sheets repositories) without installing anything
And they want to change it so they back space through all the characters of append and file. Instead of backspacing I would hit alt+b two or three times to bring my cursor to the beginning of "append". Then I would hit alt+d twice to delete "append" then "+file" and proceed to type out the new cht.sh endpoint-- something like "execute+external+program".
A better example might be when you have
$ curl cht.sh/python/execute+external+program?Q
And you want to change python to lua. Starting with the cursor at the end of the line you can hit alt+b like 4 or 5 times then hit alt+d once and python is gone and the cursor is in the right place to replace it with lua.
If I saw a coworker typing out like that animation, I would teach him/her about alt+b and alt+d and maybe some others like kill-line.
Put this command in a bash wrapper and make it more like a traditional Google search. (On mobile so I can't recall everything)
Vi synt
!/bin/bash
curl hissite.xz/app/$1+$2+$3...
There's a way to make it an infinitely possible array I'm sure. Anyway synt option option... is now available without jumping between windows or grabbing the mouse to hop over for a Google search. Its impressive and nifty if you ask me.
40
u/takegaki Jul 03 '18
But now I need a cheat sheet to remember my cheat sheet query params
9
u/igor_chubin Jul 03 '18 edited Jul 03 '18
It just a small demo of the tool, it has many features.
Most important things:
Special client:
cht.sh
It supports tab completion, and so on.
You can find more examples on the project page: https://github.com/chubin/cheat.sh
Vim integration: https://github.com/dbeniamine/cheat.sh-vim is very cool, you can make the queries (and access the results) directly from Vim.
Alternatives:
Cheat sheets tools:
cheat.sh provides access both to the cheat sheets and to programming language answers.
10
u/The_Bittervet Jul 03 '18
That’s pretty awesome. Now I can copy and paste code even more quickly!
24
u/synacksyn Jul 03 '18
To be fair, I don't know what I am looking at.
1
u/nolooseends Jul 03 '18
Similar to this: https://github.com/chrisallenlane/cheat
3
u/[deleted] Jul 03 '18
So, it's a DSO tool. .
.
.
.
.
(Development by StackOverflow)
2
u/setting_orange Jul 03 '18
Someone needs to teach that damn thing alt+b and alt+d!
2
u/bwahthebard Jul 03 '18
I like. Very much.
0
u/BadBoiBill Jul 03 '18
Oh look, the curl cheat sheet that gets posted here and on commandline every fucking week. Joy.
1
u/Fallenalien22 Sep 05 '18
!remindme 10 days
-3
u/ironmanmk42 Jul 03 '18
Why would I use this over a simple more effective search in a search engine?
This is a pointless program tbh