HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
chubin
cheat.sh
Python2017–2024
chubin / cheat.sh

cheat.sh

the only cheat sheet you need

22Distinct people
27Mentions
0Explicit recommenders
41.9KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

the only cheat sheet you need

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:03:16 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year27 dated mentions

Observed mentions: 2017-05-25 16:33:52 UTC to 2024-05-21 16:41:16 UTC.

0369122017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments20172018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 11 mentions; 3 submissions, 8 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments20202021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 6 mentions; 1 submissions, 5 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2024

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC110
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC1138
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC101
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC312
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC615
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC303
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC110

What Hacker News says

27 sources
It's always bittersweet to see this posted. It is great and I wish more people knew about it, but it also has a daily limit so every time it gets press it runs of of api requests early in the morning and doesn't work again until the next day. He also made this, which is extremely useful: https://github.com/chubin/cheat.sh
In Weather Report
One of the most useful cheat sheet utilities I've come across is cheat.sh: https://github.com/chubin/cheat.sh If you don't have it installed it can easily be queried with curl from the command line like: `curl cheat.sh/sed`. The payload is colorized and gives a lot of examples of usage of the command. You can also query "cht.sh" to use fewer characters. There is actually a lot more advanced usage of the tool/service if you check out the README. Apologies if this isn't what you're looking for.
In Ask HN: Can I see your cheatsheet?
This is a pretty decent cheat sheet. It might be worth noting that not all these commands may be available on every Linux distribution. In fact, there is no set of commands or packages guaranteed to be installed on every distro. Though I'd guess that most distros should have bash[0], coreutils[1], findutils[2], util-linux[3], procps[4], as well as the usual text wrangling commands such as grep(1), sed(1), and awk(1). From there on, browsing through man pages is a great way of gaining a deep understanding of a specific command. However, man pages are often too verbose and technical for those unfamiliar with the command. So prior to viewing man pages I find it useful to use cheat.sh[5] to see what my typical use cases of a command are, I then consult the manuals to figure out what each option means. Eg. $ curl cht.sh/tldr:tar ...
Read the rest
# Create an archive from files: tar cf target.tar file1 file2 file3 # Create a gzipped archive: tar czf target.tar.gz file1 file2 file3 ... [0] https://www.gnu.org/software/bash/ [1] https://www.gnu.org/software/coreutils/ [2] https://www.gnu.org/software/findutils/ [3] https://en.wikipedia.org/wiki/Util-linux [4] https://gitlab.com/procps-ng/procps [5] https://github.com/chubin/cheat.sh
In Linuxgems – A succinct cheat sheet for newbie Linux coders and sysadmins
curl cheat.sh/python+unique+list+values+ordered returns the most-upvoted answer on that SO question. With the Free vim plugin¹, typing the question into your code buffer followed by `<leader>KK` should bring the answer up in a pager, `<leader>KP`/`<leader>KR` should paste it after/over (replacing) the question, and `<leader>KC` should toggle the explanatory comments. Seems like a greater ‘minimiz[ation of] context switching’ to me. ¹Emacs, Sublime, VSCode, IDEA, and QtCreator plugins with varying feature sets also available. No affiliation. https://github.com/chubin/cheat.sh#editors-integration
In Show HN: Devbook – Search Engine for Developers

Showing the 15 most recent of 27 sources. Enable JavaScript to search and browse every indexed mention.

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.