---
title: "Cheatsheets"
slug: "cheatsheets"
category: "cheatsheets"
tags: ["moc", "cheatsheets", "reference", "quick-reference"]
status: "stable"
last_updated: 2026-08-14
summary: "Quick-reference cards for the commands, selectors, status codes, and patterns developers Google repeatedly."
---

> Tables, not prose. Each page here is a quick-reference card for a topic developers and agents look up repeatedly: git incantations, bash one-liners, CSS selectors, HTTP status codes, regex patterns, Markdown variants, EXPLAIN node types, and schema.org types. Use these when you want the answer in one screen.

## Pages

- [[cheatsheets/git-commands|Git commands]]: inspect, undo, branch, sync, rebase, stash, recover. The commands worth memorizing and the flags that matter.
- [[cheatsheets/git-aliases|Git aliases]]: useful git aliases (st, co, lg, cm, fixup) and shell aliases for common git workflows; how to set them up in .gitconfig and .zshrc.
- [[cheatsheets/git-rebase|Git rebase]]: interactive rebase commands, rebase --onto patterns, and conflict resolution steps for keeping a clean linear history.
- [[cheatsheets/bash-one-liners|Bash one-liners]]: find and replace, file discovery, jobs and traps, parameter expansion, arithmetic. With the why next to the what.
- [[cheatsheets/find-grep-awk-sed|find, grep, awk, sed]]: file search, pattern matching, and text processing. Common pipelines with globbing and escaping gotchas.
- [[cheatsheets/ssh-config|SSH config]]: SSH client config (~/.ssh/config) patterns: Host blocks, IdentityFile, ProxyJump, ControlPersist, ForwardAgent, and security hardening options.
- [[cheatsheets/openssl-commands|OpenSSL commands]]: generate keys and certs, inspect certificates, test TLS connections, convert formats, and verify chains.
- [[cheatsheets/vim-commands|Vim commands]]: modes, motions, operators, text objects, registers, macros, and search/replace.
- [[cheatsheets/tmux-commands|tmux commands]]: sessions, windows, panes, copy mode, and config patterns for persistent terminal workspaces.
- [[cheatsheets/docker-commands|Docker commands]]: build/run/exec/logs/inspect, networks and volumes, multi-stage patterns, and system cleanup.
- [[cheatsheets/dockerfile-syntax|Dockerfile syntax]]: FROM, RUN, COPY, CMD, ENTRYPOINT, ARG, ENV, USER, WORKDIR, EXPOSE, and HEALTHCHECK instructions with examples and multi-stage patterns.
- [[cheatsheets/kubernetes-commands|Kubernetes commands]]: kubectl get/describe/apply/delete/logs/exec/port-forward with common selectors and resource shortnames.
- [[cheatsheets/aws-cli-commands|AWS CLI commands]]: AWS CLI v2 command reference for s3, ec2, lambda, sts, and iam with practical examples and flag explanations.
- [[cheatsheets/nginx-config|Nginx config]]: Nginx server, location, and upstream block reference with proxy_pass, try_files, return, SSL, and gzip directives.
- [[cheatsheets/curl-flags|curl flags]]: -X/-H/-d/-b/-L/-o/-I/-k/--resolve/--compressed; auth flags and common HTTP test patterns.
- [[cheatsheets/jq-syntax|jq syntax]]: selectors, filters, transformations, map/select, null handling, and common one-liners.
- [[cheatsheets/gh-cli|GitHub CLI (gh)]]: pr/issue/repo/workflow commands, auth, API patterns, and --jq scripting.
- [[cheatsheets/postgres-explain|Postgres EXPLAIN]]: node types, cost components, scan strategies, buffer reading, and the thresholds that warrant action.
- [[cheatsheets/postgres-functions|Postgres functions]]: aggregate, window, date/time, and JSONB functions with examples.
- [[cheatsheets/postgres-types|Postgres types]]: column type reference covering text/varchar/char, numeric types, timestamps, json/jsonb, arrays, and uuid with storage notes and casting syntax.
- [[cheatsheets/sql-joins|SQL joins]]: join types with set-diagram semantics, syntax, and the NULL and row-multiplication bugs that bite most often.
- [[cheatsheets/typescript-utility-types|TypeScript utility types]]: Pick/Omit/Partial/Required/Readonly/Record/Exclude/Extract/NonNullable/ReturnType/Parameters/Awaited with examples.
- [[cheatsheets/typescript-narrowing-patterns|TypeScript narrowing patterns]]: typeof, instanceof, in, type predicates, discriminated unions, assertion functions, and exhaustive switch patterns.
- [[cheatsheets/javascript-array-methods|JavaScript array methods]]: array method quick-reference with return types, mutation status, and the behavior details that matter for correctness.
- [[cheatsheets/react-hooks|React hooks]]: useState, useEffect, useMemo, useCallback, useRef, useContext, useReducer reference with the rules of hooks and common patterns.
- [[cheatsheets/python-collections|Python collections]]: Counter, defaultdict, namedtuple, deque, ChainMap, and OrderedDict with use cases and examples.
- [[cheatsheets/python-regex|Python regex]]: re module functions, flags, character classes, greedy vs lazy quantifiers, and the common patterns worth keeping compiled.
- [[cheatsheets/swift-collection-methods|Swift collection methods]]: map, filter, reduce, sorted, forEach, contains, first, last, zip, and enumerated on Array, Set, and Dictionary with lazy evaluation notes.
- [[cheatsheets/css-selectors|CSS selectors]]: every selector type with example, specificity score, and use case, including `:has`, `:is`, `:where`, `:not`, and `:nth-child`.
- [[cheatsheets/css-units|CSS units]]: every CSS unit with when to use each: px, rem, em, %, vw/vh, ch, dvh/svh/lvh, fr, and the container-relative units.
- [[cheatsheets/aria-attributes|ARIA attributes]]: aria-label, aria-labelledby, aria-describedby, aria-live, aria-busy, aria-expanded, aria-controls, and when to use each.
- [[cheatsheets/ai-crawlers|AI crawler user-agents]]: reference table of current AI and LLM crawler user-agents, what each does, and the robots.txt token that controls it.
- [[cheatsheets/http-status-codes|HTTP status codes]]: the full table with meanings and the "what to use when" guide for API design.
- [[cheatsheets/regex-patterns|Regex patterns]]: canonical patterns for email, URL, dates, IPs, and ports, plus a character-class reference.
- [[cheatsheets/markdown-syntax|Markdown syntax]]: CommonMark, GFM, Obsidian, and MDX compared. Which syntax works where for tables, footnotes, math, callouts, and wikilinks.
- [[cheatsheets/schema-org-types|schema.org types]]: the types worth shipping, the required fields, and the rich results each one unlocks.
- [[cheatsheets/llm-prompt-patterns|LLM prompt patterns]]: copy-ready templates for XML delimiters, few-shot examples, chain-of-thought, system+user role separation, and structured JSON output.
- [[cheatsheets/keyboard-shortcuts-vscode|VS Code keyboard shortcuts]]: file ops, navigation, multi-cursor editing, refactoring, terminal, and debugging shortcuts with Mac and Windows/Linux pairs.
- [[cheatsheets/macos-keyboard|macOS keyboard shortcuts]]: Finder, screenshots, window management, terminal, text editing, and system navigation shortcuts.
- [[cheatsheets/cron-syntax|Cron Syntax Cheatsheet]]: Cron field grammar, ranges, lists, step values, special strings, and the timezone and day-of-week traps that cause silent misfires.
- [[cheatsheets/css-grid-areas|CSS Grid Areas Cheatsheet]]: CSS grid-template-areas syntax, area naming, placement rules, responsive overrides, and the common full-page layouts built with named areas.
- [[cheatsheets/curl-test-patterns|curl Test Patterns Cheatsheet]]: curl recipes for GET, POST, PUT, DELETE, JSON bodies, auth headers, file uploads, and response inspection. The flags that matter for API testing.
- [[cheatsheets/git-merge-strategies|Git Merge Strategies Cheatsheet]]: Git merge strategies compared: fast-forward, no-ff, squash, rebase, ours/theirs, recursive. When each produces the right history and when it destroys it.
- [[cheatsheets/json-jq-recipes|JSON / jq Recipes Cheatsheet]]: jq recipes for common transforms: select, map, group_by, conditional output, batch updates, nested filtering, and output reshaping.
- [[cheatsheets/postgres-window-functions|Postgres Window Functions Cheatsheet]]: Postgres window functions: ROW_NUMBER, RANK, DENSE_RANK, LAG, LEAD, FIRST_VALUE, LAST_VALUE, aggregate windows, PARTITION BY, frame clauses.
- [[cheatsheets/python-itertools|Python itertools Cheatsheet]]: Python itertools reference: chain, product, combinations, permutations, groupby, accumulate, islice, takewhile, and composition patterns.
- [[cheatsheets/python-string-formatting|Python String Formatting Cheatsheet]]: Python string formatting methods side by side: f-strings, str.format, format_map, percent-style, with format specifiers and when to use each.
- [[cheatsheets/regex-flags|Regex Flags Cheatsheet]]: Regex flags (i, g, m, s, x, u) with anchors, quantifiers, and lookahead/lookbehind patterns across Python and JavaScript.
- [[cheatsheets/tsx-jsx-syntax|TSX/JSX Syntax Cheatsheet]]: TSX/JSX syntax patterns: interpolations, ternaries, fragments, key prop, conditional rendering, event handlers, and ref usage.

## Related MOCs

- [[coding/index|Coding]]
- [[backend/index|Backend]]
- [[frontend/index|Frontend]]
- [[seo/index|SEO]]
- [[tooling/index|Tooling]]
