curl cheat.sh — instant answer on any question in any language about any programming language from command line

curl cheat.sh — instant answer on any question in any language about any programming language from command line

Posted Jul 2, 2018, 8:39 PM UTC

23118
geirha•

Seems to give you the top voted answers to the first matching question on stackoverflow. Not very useful for bash questions, then; it'll give you an answer, just likely not a good one.

30
pzl•

This.

The examples in the gif must have been hand-picked as known to have short code examples (or code examples at all). Most of what I'm putting in (and it's simple stuff: "tcp", "tcp+connection", "read file") are either spitting out comments-only (no code in S.O. answer), or a lot more code.

The syntax highlighting on output though, super nice. But it breaks piping/redirection.

20
igor_chubinOP•

?T switches the syntax highlighting off; and no, the question are not hand-picked, the service for out of service yesterday because of highload; just retry your questions now

1
mrcaptncrunch•

u/spazzpp2 already mentioned howdoi, https://github.com/gleitz/howdoi

There’s also “StackOverflow Importer” for Python, https://github.com/drathier/stack-overflow-import

This last one takes it a step further by getting an answer then checking if it’s valid. If it is, it imports it, if not, it tries the next highest voted.

5
igor_chubinOP•

For the next question add /1, /2 and so on: curl cht.sh/bash/sort+array/1 curl cht.sh/bash/sort+array/2 etc.

1
spazzpp2•

Similar to "howdoi"

5
igor_chubinOP•

It is similar to howdoi and similar to how2, but it has several differences: it is faster; it doesn't need to be installed; + has vim/emacs plugin + access to cheat sheets services. Actually here stack overflow answers is only one of the functions.

3
StolidSentinel•

I gotta learn a syntax to figure out how to learn a syntax.

All right Xzibit.. that's enough for today.

EDIT: Yes, I realize it's "syntax".

3
K4lim•

I've seen you ccc talk about this! Really nice project, i'm using wttr.in since then on a daily base :)

3
igor_chubinOP•

Thank you! We have improved the service since that time and I'm excited about the features we are working currently on, and that, I hope, will be released soon

2
pointyball•

Woah!

2
rtbrsp•

I love these curl services. I don't use them day-to-day, but these can be invaluable if you have to jump on someone else's machine. Portability always scores points for me.

2
tiagval•

This is incredible!

1
Jeklah•

got a download link?

1
igor_chubinOP•
2
Jeklah•

That's crazy. Good job on a solid project!

2
igor_chubinOP•

Thank you! And stay tuned: several cool features should be released soon

1
Jeklah•

Looking forward to seeing the updates!
Will be showing my work colleagues this tomorrow! Will let you know what they think haha.

1