Ask HN: Can I see your cheatsheet?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • cheat

    cheat allows you to create and view interactive cheatsheets on the command-line. It was designed to help remind *nix system administrators of options for commands that they use frequently, but not frequently enough to remember.

  • Here is tool that I use very often: https://github.com/cheat/cheat

    Super simple!

    Here is example:

    > cheat zip

    # To create zip file:

    zip archive.zip file1 directory/

    # To create zip file from directory:

    zip -r archive.zip directory/

    # To create zip file with password:

    zip -P password archive.zip file1

    # To join a split zip file (.zip, .z01, .z02, etc):

    zip -FF splitZipfile.zip --out joined.zip

    # To list, test and extract zip archives, see unzip:

    cheat unzip

  • tldr

    📚 Collaborative cheatsheets for console commands

  • I used to keep a list of snippets, but I found a tool that did it better - `tldr` (https://tldr.sh). I can use this from the command line instead of going searching my notes for it.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • cheatsheet

    📜 A compendium of CLI commands I can't stop looking up (by fastily)

  • Almost everyone I know keeps a list of (easily forgettable) command line snippets somewhere. I can't imagine that HN folks would be any different :)

    So that said, could I please see your cheatsheet?

    I'll go first: https://github.com/fastily/cheatsheet

  • cheat.sh

    the only cheat sheet you need

  • 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.

  • notes

    Discontinued Notes, mostly for myself, but could be useful to others. (by valbaca)

  • less "cheatsheet" and more just general notes for languages and vim and such:

    https://github.com/valbaca/notes

  • dotfiles

    My dotfiles. (by issmirnov)

  • config-files

    My collection of .dotfiles, settings and snippets.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • mcfly

    Fly through your shell history. Great Scott!

  • I've been loving mcfly[0], a history search that can be bound to . It makes suggestions based on your current directory as well as your command history.

    [0] https://github.com/cantino/mcfly

  • fd

    A simple, fast and user-friendly alternative to 'find'

  • I've been pretty happy with `fd`: https://github.com/sharkdp/fd

  • learn_perl_oneliners

    Example based guide for text processing with Perl from the command line

  • I use my ebooks for reference:

    * GNU grep and ripgrep (https://learnbyexample.github.io/learn_gnugrep_ripgrep/)

    * GNU sed (https://learnbyexample.github.io/learn_gnused/)

    * GNU awk (https://learnbyexample.github.io/learn_gnuawk/)

    * Ruby one-liners cookbook (https://learnbyexample.github.io/learn_ruby_oneliners/)

    * Perl one-liners cookbook (https://learnbyexample.github.io/learn_perl_oneliners/)

    * Command line text processing with GNU Coreutils (https://learnbyexample.github.io/cli_text_processing_coreuti...)

    * Command line text processing with Rust tools (https://learnbyexample.github.io/cli_text_processing_rust/) — work-in-progress

    * Computing from the Command Line (https://learnbyexample.github.io/cli-computing/) — work-in-progress

  • learn_gnused

    Example based guide to mastering GNU sed

  • I use my ebooks for reference:

    * GNU grep and ripgrep (https://learnbyexample.github.io/learn_gnugrep_ripgrep/)

    * GNU sed (https://learnbyexample.github.io/learn_gnused/)

    * GNU awk (https://learnbyexample.github.io/learn_gnuawk/)

    * Ruby one-liners cookbook (https://learnbyexample.github.io/learn_ruby_oneliners/)

    * Perl one-liners cookbook (https://learnbyexample.github.io/learn_perl_oneliners/)

    * Command line text processing with GNU Coreutils (https://learnbyexample.github.io/cli_text_processing_coreuti...)

    * Command line text processing with Rust tools (https://learnbyexample.github.io/cli_text_processing_rust/) — work-in-progress

    * Computing from the Command Line (https://learnbyexample.github.io/cli-computing/) — work-in-progress

  • learn_gnugrep_ripgrep

    Example based guide to mastering GNU grep and ripgrep

  • I use my ebooks for reference:

    * GNU grep and ripgrep (https://learnbyexample.github.io/learn_gnugrep_ripgrep/)

    * GNU sed (https://learnbyexample.github.io/learn_gnused/)

    * GNU awk (https://learnbyexample.github.io/learn_gnuawk/)

    * Ruby one-liners cookbook (https://learnbyexample.github.io/learn_ruby_oneliners/)

    * Perl one-liners cookbook (https://learnbyexample.github.io/learn_perl_oneliners/)

    * Command line text processing with GNU Coreutils (https://learnbyexample.github.io/cli_text_processing_coreuti...)

    * Command line text processing with Rust tools (https://learnbyexample.github.io/cli_text_processing_rust/) — work-in-progress

    * Computing from the Command Line (https://learnbyexample.github.io/cli-computing/) — work-in-progress

  • learn_gnuawk

    Example based guide to mastering GNU awk

  • I use my ebooks for reference:

    * GNU grep and ripgrep (https://learnbyexample.github.io/learn_gnugrep_ripgrep/)

    * GNU sed (https://learnbyexample.github.io/learn_gnused/)

    * GNU awk (https://learnbyexample.github.io/learn_gnuawk/)

    * Ruby one-liners cookbook (https://learnbyexample.github.io/learn_ruby_oneliners/)

    * Perl one-liners cookbook (https://learnbyexample.github.io/learn_perl_oneliners/)

    * Command line text processing with GNU Coreutils (https://learnbyexample.github.io/cli_text_processing_coreuti...)

    * Command line text processing with Rust tools (https://learnbyexample.github.io/cli_text_processing_rust/) — work-in-progress

    * Computing from the Command Line (https://learnbyexample.github.io/cli-computing/) — work-in-progress

  • sh-param-expansion

    POSIX sh parameter expansion cheat sheet

  • dotfiles

  • Set a huuuuuuuge shell history https://github.com/craigjperry2/dotfiles/blob/aa77ddcbde63bf... then fzf ctrl+r bindings mean you can recall anything right where you need it.

    If you’re going to do this then have an escape hatch for commands you don’t want memorised https://github.com/craigjperry2/dotfiles/blob/aa77ddcbde63bf...

  • quick-reference

    A collection of cheatsheets

  • zsh-histdb

    A slightly better history for zsh

  • This the working directory of the command has been especially useful for me to get the context of what I did, not only the command itself.

    [1] - https://github.com/larkery/zsh-histdb

  • dotfiles

    Managed using https://yadm.io/ (by Toreno96)

  • https://github.com/Toreno96/dotfiles/blob/master/commands.tx...

    Beware: I started this long before I became a fan of markdown, so the syntax of the whole file could seem as pretty weird, but it works for me. I mainly do `rg ~/commands.txt` in shell or `/` in vim when I need to find something in there.

    There are also definitely too much commands dumped into the `Etc` section. I should reorganize this some day.

  • bitbar

    Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)

  • For those with larger collections (I'm up to ~350 individual sheets), I'm interested to know you access (find/read/edit) the cheatsheets. My way:

    (Mac Desktop): I use xbar [0] with a custom script to create a menubar nested dropdown of all of my cheatsheets. Selecting opens in typora [0] for reading/editing markdown.

    (CLI): I use cheat [0] which consumes the same markdown cheatsheet content

        [0]: https://xbarapp.com

  • cheatsheets

    Cheatsheets for web development - devhints.io

  • A friend of mine made this awesome collection: https://devhints.io/

  • data-science-cheat-sheets

    Collection of Data Science Cheat Sheets

  • Jupyter Notebook shortcuts https://github.com/mljar/data-science-cheat-sheets/tree/main...

  • cheat

    my cheat site- try visiting https://ch.ebfe.pw/ or curl https://ch.ebfe.pw/list.txt (by santrancisco)

  • As for me, I put together some spaghetti bash functions for taking note while using the terminal (eg run tnote function will let me select one of the last 10 commands, type a description of what it does and move on with my day...i can come back later and sort it out into my notes)...

    I then write another small bash script that use consolemd and surge(probably will move to github page at some point) to generate a simple webpage with simple markdown JavaScript library to serve it up along with all the files generated by consolemd so i can use curl in terminal and have it colorfully displayed.

    The cheatsheet site is here https://ch.ebfe.pw/.

    And you can try it in terminal: curl https://ch.ebfe.pw/intel/splunk

    And my code can be found here if you are interested:

    https://github.com/santrancisco/cheat

  • dotfiles

    My configuration files (by charlax)

  • duckduckgo-locales

    Translation files for <a href="https://duckduckgo.com"> </a>

  • Code-Cheatsheet

    Markdown notes/code samples on many the CS Topics I've learned, because I keep forgetting/relooking up the same basics

  • kb

    A minimalist command line knowledge base manager

  • My team has a shared knowledge base set up via kb: https://github.com/gnebbia/kb

    It’s like a group-maintained collection of cheatsheets. The git sync is buggy but I’ve made it work.

  • interactively

  • I suggest:

    C-x C-e in the CLI (not sure if it’s zsh only) will open your command line in your $EDITOR - useful to get code highlighting and write multi line commands if that’s the blocker. The problem is iterating.

    OR

    Pipe your awk input to a file and then use this thing I wrote to build up your awk program. I use it most often with `jq`.

    https://github.com/bigH/interactively

  • goexamples

    Complete golang example; sample Go code

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts