14 ms·
Unified access to the best community-driven cheat sheets repositories
- BorisYeltsin 8y agoI really like the idea. Will definitely try it today!
- PaulRobinson 8y agoI like the idea, and think it has potential, but… The search engine is not great. The tutorial gives the example of searching for "execute+external+program". Change "program" for "command", you're OK. Change "execute" for "run"and it bombs. For something that simple, this causes doubt that if I were to look for a solution to a problem in a language I was learning and it bombed, is the fault with cht.sh, or with me? Does the language even let you do that? I've have to run towards my browser to find out. Also, the big advantage Dash has over this, and of course local generated docs (like Go's doc server et al), is that they are local. No network needed. I can be productive when offline, and when coding I often like to try and go offline. It's also faster, and for some docs I can even search a little with grep which I already remember. I can also get integrations with my editors, etc. It's a great idea, I like it, and I think it has a niche, but it needs more synonyms in that search engine, and perhaps some integrations to make it a little more accessible to the workflow.
- dangoor 8y agoI agree about the search engine. I'm a big fan of Dash, but Dash is currently built around documentation rather than cheat sheets. If someone loaded up Dash with a bunch of cheat sheets, that would be really handy.
- tylerflick 8y agoDash absolutely has cheat sheets.
- dangoor 8y agoHoly cow! There's a whole category for them. How did I miss that?
- nolliebs180 8y agoUsing a commonly available bin like curl is great, but if codebase made me install something that would first run my query locally before hitting the net, that would be preferable. Because if I search for something, say ruby-related, then it's a good chance I'd search for something else later on that's ruby-related and having the command cache info locally would give me the same interface and quicker results later on.
- fra 8y agoThis is not working at all for me. I keep getting HTML & CSS vomit regardless on whether I use their command line tool or curl.
- Freak_NL 8y agoWeird. Did you file a bug? curl cht.sh curl cht.sh/apt-get The above just works for me with curl.
- nebulous1 8y agopost a curl -v cht.sh ?
- avaika 8y agoWhich curl version do you have? Might it be a chance that you have a curl script somewhere in your PATH before real curl which enforces some user-agent setting?
- laumars 8y agoWhat user agent string is your curl request sending out? I think it does user agent checking to decide whether to send out a shell escaped version of the page or one with traditional web markup because when I make a HTTP request with one of my other CLI HTTP clients it only sends shell output if I send curl's UA.
- ZaidMalhis 8y agoYour curl user agent is most probably set to a browser user agent. Try changing it to the curl user agent: curl -A "curl/7.37.0" cht.sh
- m3nu 8y agoWorks fine. Nice idea.
- known 8y agoWeather wttr.in
- philpem 8y agoI give it five minutes before this is on all the plagiarism checker of all those "coding challenge" sites recruiters/HR love to throw out in pre-interview screening...
- Freak_NL 8y agoI like how this gives me access to succinct example usages of tools just enough to get me going or to jog my memory for how a certain tool works — without having to resort to using a browser and a search engine. curl cht.sh/find curl cht.sh/sed Like these.
- Freak_NL 8y agoIf you're wondering where this tool gets its data from, have a look: https://github.com/chubin/cheat.sh#cheat-sheets-sources https://github.com/chubin/cheat.sh#cheat-sheets-sources
- hoppelhase 8y agoSimilar project: http://tldr.sh http://tldr.sh
- QasimK 8y agoThere’s also http://bropages.org http://bropages.org
- j88439h84 8y agoI use this all the time. It's very good. It has clients in multiple languages, like https://github.com/tldr-pages/tldr-python-client https://github.com/tldr-pages/tldr-python-client
- hit8run 8y agoThe cheat sheet project also takes data from tldr.
- yread 8y agohttps://explainshell.com https://explainshell.com is sort of a reverse
- j88439h84 8y ago> Instead of creating yet another mediocre cheat sheet repository, we are concentrating our efforts on creation of a unified mechanism to access selected existing well developed and good maintained cheat sheet repositories covering topics of our interest: programming and operating systems usage. https://github.com/chubin/cheat.sh https://github.com/chubin/cheat.sh
- sgt 8y agoThere's also a cheat sheet built into nearly every computer - it's called man pages.
- crottypeter 8y agoThis is true but they are often long and complicated and aren't always conducive to quick solutions or refreshing memories of a useful combination of arguments. It is good to have both.
- sgt 8y agoThat's true. However I often encounter co-workers refusing to read man pages, because they only want to see a cheat sheet. They end up endlessly wandering Stack overflow and google for hours instead of spending 5 minutes going through the actual manual.
- mirimir 8y agoSure, but some are very short, and others are very long and impenetrable. I like ones with examples. A better option is often "foo -h".
- Chilinot 8y agoAlso, the times a manpage contains examples seems like 1 in 20.
- dvfjsdhgfv 8y agoEspecially in sections 2 and 3. Including examples would greatly increase their usefulness and I wonder why the authors don't do that.
- marcodave 8y agothose are hard to be considered cheat sheets... extensive reference documentation, maybe, but "command --help" is more similar to a cheat sheet than "man command"
- jbverschoor 8y agoWould be nice to have an alfred or vscode plugin
- TeMPOraL 8y agoI like it. I also like the feature 'Freak_NL pointed out - quick memory-jogging examples for a command. Speaking of those top-level queries, I've noticed some of them are reported as unknown, even though they then are suggested. Observe: temporal@galactica~> curl cht.sh/lisp Unknown topic. Do you mean one of these topics may be? * lisp/ 100 * elisp/ 89 * alias 67 Changing the URL to cht.sh/alias correctly gives a list of examples, while lisp and elisp are always reported as unknown. My guess is, something somewhere is storing those tokens with forward slash in the name, whereas the HTTP handling code strips it out from request. EDIT: https://github.com/chubin/cheat.sh/issues/32 https://github.com/chubin/cheat.sh/issues/32. I need to kick the habit of writing HN comments first, then bug reports later :).
- hit8run 8y agoWow I love the idea. Will try it out today. Could be a time saving pal when switching to topics you are not working on every day.
- testaccount7 8y agoHow is it better than google
- hit8run 8y ago# Sorry, we are experiencing extremely highload now. # We are working on the problem and how to get it fixed soon. # Please come back in several hours or try some other queries Would be cool to get offline functionality...
- igor_chubin 8y agoWe are working on that but it is not so easy because many queries are generated just in time. The high load problem is mitigated by the way, so you can try now if you want.
- nloa 8y agoMost queries still don't work for me.
- pgt 8y agoThis cleverly one-ups http://bropages.org/ http://bropages.org/ by leveraging an existing command in the environment you are most likely to type "bro curl", but you don't need to install a tool first.
- alismayilov 8y agoIt is interesting to see how the title effect number of upvotes and comments. I’ve submitted this other day and it did not get any upvotes. My submission: https://news.ycombinator.com/item?id=17471476 https://news.ycombinator.com/item?id=17471476
- hikarudo 8y agoIt's not just the title. Time of submission affects which parts of the world will be seeing the submission. Also, randomness.
- kchr 8y agoDon't forget the timing in regards to adjacent headlines in the feed at any moment a user reads it.
- koolba 8y agoYes it’s called “marketing” and it has a huge impact on initial perception. Consider each of these and think of which would catch your eye enough to click it, read about it, then come back and upvote it: * Meta cheatsheet * The only cheat sheet you need * Cheatsheet.sh * Cheat Sheetah * Unified CLI Cheetsheet People gaming the title is the reason for the rule that the title has to match the actual linked article. Though if you’re the creator of the content that’s not an issue as you can title it at the source however you want.
- Semiapies 8y agoAlso that "Meta cheatsheet" sounds like a cheatsheet for something called "Meta", and not being familiar with any such technology, I wouldn't be curious about a cheatsheet.
- danso 8y agoUnless something has changed in the repo, the Github description -- as close to a "headline" that a Github repo can get -- is: "the only cheat sheet you need" I agree that "Meta cheatsheet" is not a very effective title. When the repo doesn't have a Github description, I usually go with: [repo name] - [first line of README.md] In this case: cheat.sh - Unified access to community-driven cheat sheets repo of the world. (I modified it to abbreviate "repositories" to "repo" and to omitted the phrase "the best", to go along with HN's rule for avoiding sensationalism.)
- ritchiea 8y agoSimilar project: Bro pages, like man pages but short examples of common use cases instead of extensive documentation. http://bropages.org/ http://bropages.org/
- nebulous1 8y agoIs the dropdown at https://cht.sh/ https://cht.sh/ a little sluggish in chrome for everybody?
- igor_chubin 8y agoYes, it is not good, we are working on the new frontend. I can give a link to it to you if you want, but not here, because it will not handle the load that comes after that; just write me a mail if you want to test it. Everybody who reads this and what to help testing the new frontend write an email to me I will share the link with you.
- nebulous1 8y agoDo you know what's causing it?
- nikisweeting 8y agoNot very respectful of https://github.com/chrisallenlane/cheat https://github.com/chrisallenlane/cheat to use the same name. The original cheat does exactly the same thing, has a big following and more stars, and has existed for years. I've opened an issue re: the name conflict https://github.com/chubin/cheat.sh/issues/34 https://github.com/chubin/cheat.sh/issues/34 Afaik these are the big players in the space: - bro: https://github.com/hubsmoke/bro https://github.com/hubsmoke/bro - tldr: https://github.com/tldr-pages/tldr https://github.com/tldr-pages/tldr - cheat: https://github.com/chrisallenlane/cheat https://github.com/chrisallenlane/cheat
- klmr 8y agoHow is a similar (not even identical) name a “name conflict”? Even if both were named “cheat”, one is a Unix command, the other is a URL that you access via HTTP (in other words, they occupy different, non-conflicting namespace). What’s more, “cheat” is a fairly natural name for a cheat sheet. In sum, I don’t understand what issue you have with the naming.
- mattmanser 8y agoCheatsheet is a term of art, not something unique. The word has been in common usage in programming for literally decades before Chris wrote his program. People used to pin them up in their cubicles before the internet existed. Not sure why you're getting outraged about it?
- ourmandave 8y agotl;dr you're cheatin' bro!
- reustle 8y agoI often wonder how much time people invest in the following before going off on their own: 1. Finding similar open source projects to what they want to exist 2. Digging into the project to see how close it is to what they want 3. Attempting to contribute to bend it to fit their needs How much of these "really similar project" situations are "I want the project to be mine for marketing / brand / control reasons" vs "I didn't know this existed already"
- Quequau 8y agoI enjoy cheat sheets as much as the next person but I think folks are missing out the key element that there's significant benefit in making them yourself.
- qrbLPHiKpiux 8y agoYes, writing it down.
- poutrathor 8y agoyou learn it by writing it down.
- superflyguy 8y agoThe act of writing down your own cheat sheet helps you to learn it.
- JadeNB 8y agoIt seems like the chain of four comments starting with Quequau's (https://news.ycombinator.com/item?id=17505892 https://news.ycombinator.com/item?id=17505892) and ending with superflyguy's (https://news.ycombinator.com/item?id=17507512 https://news.ycombinator.com/item?id=17507512) mean to disagree, but actually wind up agreeing. Is that correct, or is there some subtle distinction among them that I'm missing?
- sah2ed 8y agoIt's the nature of the medium being text-based. FWIW, I didn't parse each of the nested comments as disagreeing, more like using their individual experiences to elucidate the point of the person they responded to.
- superflyguy 8y agoMine was me observing the similarity of the previous two. If there was any difference there then it was too polite/subtle for me.
- PythonicAlpha 8y agoThe output seems to be optimized for people with dark background color on the xterm. Is there a possibility to have a different color scheme?
- igor_chubin 8y agoYes curl cht.sh/:styles-demo select the best style for you, and use it in the queries. curl cht.sh/:help for more info. Also, use the special client cht.sh which supports persitent configuration and many other useful features.
- PythonicAlpha 8y agoThanks, that helps.
- rident 8y agogetting a bit long for a cheetsheet curl cht.sh/js/foreach
- igor_chubin 8y agoIt depends on topic + you can use the ~ notation to extract only parts of the cheat sheet. Check README on Github for that (or curl cht.sh/:help)
- Sir_Cmpwn 8y agoInstead of investing in out of band resources like this, I really wish people would just contribute improvements to the upstream documentation, which is usually more comprehensive and up-to-date than any of these resources can be.
- mrits 8y agoI think the idea of a cheat sheet is that it isn't comprehensive documentation.
- superflyguy 8y agoNo, I don't agree. Git has great documentation but if you want to know how to use it you either spend 15 minutes reading the relevant part of the big free book or you Google for a cheat sheet. Same goes for vim. I don't know why but some people are satisfied with documentation which, although not incorrect, only makes sense when you already have a substantial understanding of the topic at hand.
- Sir_Cmpwn 8y agoNonsense, you can also read the man pages, and if any of these resources are insufficient you should spend any time you would have spent writing a cheat sheet contributing improvements to the actual resources - the documentation is an open-source community project as much as the project itself is.
- superflyguy 8y agoSounds like a bit of a waste of time to me. What are the odds Linus is going to update the git documentation with my list of handy shortcuts? He'll just swear at me. I don't think the official documentation is the place for it; not now it's been written the way it has. I'm happy with the book + my notes on gitlab.
- Sir_Cmpwn 8y agoWell, for one, Linus isn't the current maintainer of Git. It's currently Junio C Hamano <gitster@pobox.com>, someone whose main responsibility in open source is looking after git, who has the time and inclination to review your contributions thoughtfully. Have you ever actually read a git man page? Or do you just get all of your git knowledge from scattered blog posts and cheat sheets? No wonder people think git is hard. Read a random git man page right now and you'll find it quite pleasant to read and containing a plethora of useful information.
- s17tnet 8y agoAny way or how to self hosting ?
- djaychela 8y agoI like this (I find brief documentation with worked examples makes it a lot easier for me to understand most things), but I've just had a look at the python lambda one which is served up by curl... and it has some errors in it. Followed the instructions on how to edit it, forked it, and... the version I went to edit has the two changes I thought needed doing already done (3 hours ago)! Pity, my first chance to contribute to a project (early-learning level python student in my mid 40s)! It does beg the question when do the curl versions get updated?
- fredley 8y agoWait, in stealth mode it's listening for any text selected, even in other programs? This is a bit mind boggling - what's to prevent any program listening to any other (like a password manager for example)? Is this sort of access not prevented by an accessibility permission?
- Livven 8y agoThis is how traditional desktop operating systems work... some things require admin rights but most stuff is indeed fully accessible to any application.