FastTools

Programming & CLI Cheatsheets

Quick reference for bash, git, Docker, Python, JavaScript, SQL, regex, vim, and tmux

9 tools

Tools in This Collection

Developer Reference Cheatsheets

These nine cheatsheets cover the commands, methods, and syntax that developers need regularly but can never fully memorize. Each is organized for scannable lookup — searchable by command, grouped by task, with examples — rather than written as a tutorial. You already know how Git works; you just need the exact rebase command syntax without opening a 200-page manual.

Shell and Version Control

The Bash Commands Cheatsheet covers file operations (find, cp, mv, rm, chmod), text processing (grep, sed, awk, cut), process management (ps, kill, jobs, bg, fg), and string manipulation with searchable examples. The Git Cheatsheet covers everyday commands (add, commit, push, pull) alongside the ones you use once a month: interactive rebase (git rebase -i HEAD~N), stash management (git stash pop, git stash list), cherry-pick, bisect, and reflog for recovering from mistakes.

Containers and Databases

The Docker Commands Cheatsheet covers image management (build, pull, push, tag), container lifecycle (run, start, stop, rm, exec), networking (port mapping, bridge networks), volume mounts, Docker Compose commands, and cleanup (docker system prune). The SQL Joins Cheatsheet shows INNER, LEFT, RIGHT, FULL OUTER, CROSS, and SELF joins with Venn diagram visuals and syntax for each. Common join confusion: LEFT JOIN returns all rows from the left table plus matching rows from the right — nulls in right columns for non-matching left rows.

Language Syntax

The Python String Methods cheatsheet lists all string methods with signatures and quick examples: str.split(sep, maxsplit), str.strip(chars), str.replace(old, new, count). The JavaScript Array Methods cheatsheet covers transformation methods (map, filter, reduce, flatMap), search methods (find, findIndex, some, every), and mutation methods (push, pop, splice, sort) with examples. The Regex Cheatsheet covers anchors (^, $, \b), quantifiers (*, +, ?, {n,m}), character classes, groups, lookaheads, and common patterns — with an interactive tester.

Terminal Multiplexers

The Vim Commands Cheatsheet covers mode switching (i, Esc, v, V), navigation (hjkl, w, b, G, gg), editing (x, d, y, p, u, Ctrl-r), search (/pattern, n, N), and file management (:w, :q, :wq). The tmux Cheatsheet covers session management (new-session, attach-session, kill-session), window operations (new-window, split-window, rename-window), and pane management (select-pane, resize-pane, kill-pane) with both keyboard shortcuts and command syntax.

Frequently Asked Questions

What are the most useful git commands to memorize?

Daily git workflow only needs about 8 commands: add, commit, push, pull, checkout/switch, branch, merge, and status. The commands that are hard to memorize but invaluable when needed: git stash/pop (save work in progress), git rebase -i (clean up commit history), git cherry-pick (apply a specific commit), git reflog (recover from mistakes), and git log --oneline --graph (visualize branch history). The Git Cheatsheet covers all of these with exact syntax.

What Docker commands do I need most often?

For day-to-day Docker use: docker build -t name . (build image), docker run -d -p 8080:80 name (run container with port mapping), docker exec -it container bash (get a shell inside a running container), docker logs container (view output), docker-compose up -d (start all services in background), docker system prune (clean up unused images and containers). The Docker Cheatsheet covers these and the full container lifecycle.

How do I quickly remember which SQL JOIN type to use?

INNER JOIN returns rows where both tables have matching values — use when you only want records that exist in both tables. LEFT JOIN returns all left table rows plus matching right rows (nulls where no match) — use when you want all records from your primary table regardless of whether related data exists. The SQL Joins Cheatsheet has Venn diagrams for each type that make the selection immediately visual.

What regex pattern matches an email address?

A pragmatic email regex: /^[\w.+-]+@[\w-]+\.[\w.]{2,}$/ — this matches the vast majority of real email addresses without being overly strict. It allows dots, plus signs, and hyphens in the local part, and allows subdomains in the domain. The RFC-compliant email regex is hundreds of characters long and rejects many valid addresses in practice. The Regex Cheatsheet includes this and other common patterns with an interactive tester.