Developer Cheatsheet
A collection of 192+ command cheatsheets covering Docker, Kubernetes, Git, Linux, Nginx, MySQL, Python, JavaScript and more. Find fast, copy directly.
Recently Updated
Original Guides View all guides →
Cheatsheets answer "how to write the command"; guides answer "what to do when things break" — original long-form troubleshooting with copy-ready commands.
HTTP Caching in Practice: Configuring Cache-Control and ETag Correctly
Misconfigured caching ends one of two ways: users never see updates, or origin traffic explodes. This guide covers the split between freshness and validation caching, the hashed-asset vs HTML strategy divide, plus ready-to-use Nginx config and verification commands.
Config FormatsYAML Gotchas: Type Coercion, Indentation and Multiline Strings
YAML files that "look right but run wrong" usually fail in three places: silently coerced scalars, misplaced indentation, and ambiguous multiline strings. This guide dissects each trap with detection methods and a toolchain.
SysOpsBash Script Safety: set -euo pipefail and trap for Trustworthy Scripts
A Bash script that "finishes" is not a script that "worked": failed commands do not stop it, empty variables pass silently, and pipes hide upstream crashes. This guide fixes all of them with a copy-ready skeleton (set -euo pipefail + trap + quoting discipline).
Dev ToolsVSCode Remote Development: Remote-SSH Setup and Connection Debugging
A weak laptop, code on an intranet server, GPUs in the cluster — Remote-SSH keeps the UI local while code and terminal run remotely, feeling native. This guide covers setup, passwordless auth, common connection failures and experience tuning.
Version Control
4 cheatsheets.gitignore Cheatsheet - Ignore Patterns & Rules
One-page reference for .gitignore patterns: glob matching, directories vs files, negation, global ignore and common language templates. Quick lookup, copy directly.
Git Cheatsheet - Command Reference
One-page Git command reference covering code commit & stash, branch creation & merge, commit revert & recovery, and remote repository operations — 30+ common operations for daily collaboration and commit recovery scenarios. Quick lookup, copy and run.
Git Branch Management Cheatsheet - Command Reference
One-page Git branch operations reference covering branch creation & switching, merge & rebase, remote branch push & pull, and branch deletion & cleanup. Covers high-frequency usage for team collaboration. Quick lookup, copy and run.
Git Log Cheatsheet - Git Commit History Reference
One-page Git Log quick reference with 48+ common commands across 7 grouped sections (git). Quick lookup, copy and run.
SysOps
41 cheatsheetsLinux Troubleshooting Cheatsheet - System Fault Diagnosis Command Reference
One-page Linux troubleshooting reference covering CPU diagnosis, memory analysis, disk I/O, network troubleshooting, and process management. Quick find, direct copy.
Vim Cheatsheet - Editor Command Reference
One-page Vim reference covering cursor movement, text editing, search and replace, visual mode, and save/exit operations. Quick find, direct copy.
Systemd Cheatsheet - Systemd Service Management Command Reference
One-page Systemd quick reference with 47+ common commands across 7 grouped sections (systemd, systemctl, journalctl). Quick lookup, copy and run.
Cron Cheatsheet - Cron Expression & Task Scheduling Reference
One-page Cron quick reference with 43+ common commands across 7 grouped sections (cron, crontab, linux). Quick lookup, copy and run.
CI/CD Commands Cheatsheet - CI/CD Pipeline Debugging Reference
One-page CI/CD quick reference with 33+ common commands across 6 grouped sections (cicd, github-actions, gitlab-ci, jenkins). Quick lookup, copy and run.
MQ Commands Cheatsheet - Kafka/RabbitMQ/RocketMQ Reference
One-page MQ quick reference with 32+ common commands across 6 grouped sections (mq, kafka, rabbitmq, rocketmq). Quick lookup, copy and run.
Languages
35 cheatsheetsPython Cheatsheet - Command Reference
One-page Python cheatsheet covering variables, data types, strings, lists, dicts, functions, file I/O, exception handling, and more. Quick lookup, copy-ready.
JavaScript Cheatsheet - ES6+ Command Reference
One-page JavaScript ES6+ cheatsheet covering let/const, arrow functions, destructuring, template literals, Promise/async-await, modules, and array methods. Quick lookup, copy-ready.
Go Cheatsheet - Go Syntax & Concurrency Reference
One-page Go quick reference with 44+ common commands across 7 grouped sections (go, golang). Quick lookup, copy and run.
NumPy Cheatsheet - NumPy Functions & Array Operations Reference
One-page NumPy quick reference with 40+ common commands across 5 grouped sections (numpy, python). Quick lookup, copy and run.
Java Cheatsheet - Java & JVM Command Reference
One-page Java quick reference with 34+ common commands across 5 grouped sections (java, jvm, maven, gradle). Quick lookup, copy and run.
PHP Cheatsheet - PHP & Composer Command Reference
One-page PHP quick reference with 36+ common commands across 5 grouped sections (php, composer, cli). Quick lookup, copy and run.
Web Services
13 cheatsheetscurl / wget Cheatsheet - Command-line File Download & HTTP Requests
One-page curl & wget reference: GET/POST requests, headers & cookies, resumable download, proxy auth and debugging, with a side-by-side comparison. Quick lookup, copy directly.
Nginx Cheatsheet - Nginx Configuration & Command Reference
One-page Nginx reference covering config testing with nginx -t/-s reload, location matching priority, proxy_pass reverse proxy snippets, and access/error log troubleshooting. Quick reference, copy directly.
curl Cheatsheet - curl HTTP Debugging Command Reference
One-page curl HTTP debugging reference covering GET/POST basics, -v/-I/-w for detailed debugging, -x proxy & timeout, -u/-F/-o for auth and upload. Quick reference, copy directly.
HTML Cheatsheet - HTML Tags & Attributes Reference
One-page HTML quick reference with 52+ common commands across 7 grouped sections (html). Quick lookup, copy and run.
CSS3 Cheatsheet - CSS3 Properties & Layout Reference
One-page CSS3 quick reference with 59+ common commands across 8 grouped sections (css). Quick lookup, copy and run.
Emmet Cheatsheet - Emmet Abbreviation & Syntax Reference
One-page Emmet quick reference with 39+ common commands across 4 grouped sections (emmet, html, css). Quick lookup, copy and run.
Databases
9 cheatsheetsSQL Cheatsheet - Common Query Syntax & Examples
One-page SQL reference: SELECT, JOIN, aggregation, subqueries, window functions, transactions and DDL, with runnable examples. Quick lookup, copy directly.
MySQL Cheatsheet - MySQL Command Reference
One-page MySQL command reference covering database & table management, CRUD operations, index optimization, user privileges, backup & recovery, and replication. Quick lookup, copy and paste.
PostgreSQL Cheatsheet - PostgreSQL Command Reference
One-page PostgreSQL command reference covering connection & role management, database & table operations, query analysis, lock & transaction troubleshooting, backup & recovery, and streaming replication. Quick lookup, copy and paste.
Redis Cheatsheet - Redis Command Reference
One-page Redis command reference covering string & data structure operations, key space management, persistence configuration, memory troubleshooting, slow query monitoring, and cluster & replication. Quick lookup, copy and paste.
MongoDB Cheatsheet - MongoDB Command Reference
One-page MongoDB quick reference with 43+ common commands across 6 grouped sections (mongodb, nosql). Quick lookup, copy and run.
Neo4j Cypher Cheatsheet - Neo4j Graph Database Command Reference
One-page Neo4j Cypher quick reference with 40+ common commands across 6 grouped sections (neo4j, cypher). Quick lookup, copy and run.
Containers & Orchestration
4 cheatsheetsDocker CLI Cheatsheet - Command Reference
One-page Docker CLI command reference covering image build/pull, container run/exec/logs, network & volume, Compose orchestration, and system prune — 30+ common operations with key flags and troubleshooting scenarios. Quick lookup, copy and run.
kubectl Cheatsheet - Command Reference
One-page kubectl command reference covering pod querying & log diagnosis, deployment scaling & rolling updates, context & namespace switching, and event troubleshooting — 20+ common operations with CrashLoop and ImagePullBackOff debugging paths. Quick lookup, copy and run.
Docker Compose Cheatsheet - Command Reference
One-page Docker Compose command reference covering multi-service orchestration, log tracking & status inspection, config validation & build, network & named volume management, and horizontal scaling — 20+ common operations with key flags and troubleshooting scenarios. Quick lookup, copy and run.
Dockerfile Cheatsheet - Docker Image Build Reference
One-page Dockerfile quick reference with 38+ common commands across 7 grouped sections (docker, dockerfile). Quick lookup, copy and run.
Reference
16 cheatsheetsRegex Cheatsheet - Common Patterns & Syntax Reference
One-page Regex reference covering character classes, anchors, quantifiers, groups, lookahead/lookbehind, greedy vs lazy matching, plus practical patterns for email, URL and phone. Quick lookup, copy directly.
HTTP Methods Cheatsheet - REST/HTTP Verbs & Idempotency
One-page HTTP methods & REST semantics: GET/POST/PUT/PATCH/DELETE verbs, idempotency, safe methods, status-code pairing and common misuses. Pairs with the HTTP Status Codes sheet for API design & debugging. Quick lookup, copy directly.
Regular Expressions Cheatsheet - Regex Syntax Reference
One-page regex syntax reference covering character classes, quantifiers, anchors, groups & captures, lookahead/lookbehind, common patterns, and flags. For grep/sed/awk/JavaScript/Python. Quick lookup, copy and paste.
HTTP Status Codes Cheatsheet - HTTP Response Status Code Reference
One-page HTTP status code reference covering 1xx-5xx with meanings, common causes and troubleshooting scenarios (http, nginx, rest). Quick lookup for API debugging.
Markdown Cheatsheet - Markdown Syntax Reference
One-page Markdown syntax reference covering headings, text formatting, links & images, lists, code blocks, tables, blockquotes, and GFM extensions. For writing docs and READMEs. Quick lookup, copy and paste.
LaTeX Cheatsheet - LaTeX Academic Typesetting Reference
One-page LaTeX quick reference with 45+ common commands across 7 grouped sections (latex). Quick lookup, copy and run.
Dev Tools
18 cheatsheetsVSCode Cheatsheet - VS Code Shortcut Reference
One-page VSCode quick reference with 44+ common commands across 7 grouped sections (vscode). Quick lookup, copy and run.
Emacs Cheatsheet - Emacs Shortcut Reference
One-page Emacs quick reference with 48+ common commands across 7 grouped sections (emacs). Quick lookup, copy and run.
ChatGPT Cheatsheet - AI Prompt Reference
One-page ChatGPT quick reference with 35+ common commands across 6 grouped sections (chatgpt, ai, prompt). Quick lookup, copy and run.
Pandoc Cheatsheet - Document Conversion Command Reference
One-page Pandoc quick reference with 38+ common commands across 6 grouped sections (pandoc, markdown, pdf). Quick lookup, copy and run.
Homebrew Cheatsheet - macOS Package Manager Reference
One-page Homebrew quick reference with 38+ common commands across 6 grouped sections (homebrew, brew, mac). Quick lookup, copy and run.
XPath Cheatsheet - XML/HTML Selector Syntax Reference
One-page XPath quick reference with 34+ common commands across 5 grouped sections (xpath, xml, html). Quick lookup, copy and run.
Config Formats
6 cheatsheetsEnv Vars Cheatsheet - .env Config & dotenv Usage
One-page reference for .env files and dotenv usage: variable definition, referencing, type casting, multi-environment files, framework integration and security pitfalls. Quick lookup, copy directly.
.dockerignore Cheatsheet - Docker Build Context Ignore Rules
One-page .dockerignore reference: glob patterns, ignoring files & directories, .dockerignore vs .gitignore differences, slimming the build context, and common pitfalls. Quick lookup, copy directly.
YAML Cheatsheet - YAML Syntax Reference
One-page YAML quick reference with 54+ common commands across 8 grouped sections (yaml). Quick lookup, copy and run.
JSON Cheatsheet
One-page JSON reference: data types, objects, arrays, nested structures, common patterns, and validation. Covers high-frequency usage for writing config files and API data.
TOML Cheatsheet - TOML Configuration Reference
One-page TOML quick reference with 38+ common commands across 6 grouped sections (toml). Quick lookup, copy and run.
INI Cheatsheet - INI Configuration Reference
One-page INI quick reference with 52+ common commands across 8 grouped sections (ini). Quick lookup, copy and run.
AI CLI
27 cheatsheetsHermes Agent CLI Cheatsheet - Nous Terminal Multi-Backend AI Agent
One-page Hermes Agent (Nous Research open-source, model-agnostic terminal AI agent) reference covering install, model & tool config, gateway, and setup wizard. Includes hermes, hermes model, hermes tools, hermes config set, hermes gateway. Copy-ready.
Kilo Code CLI Cheatsheet - Terminal Open-source Coding Agent
One-page Kilo Code CLI (terminal AI coding agent, same engine as the IDE extensions) reference covering install, interactive & one-off tasks, and model integrations. Includes kilo, kilo run, kilo --mode, kilo --auto, kilo auth, kilo mcp. Copy-ready.
Pi CLI Cheatsheet - earendil Terminal Multi-Model Coding Agent
One-page Pi (earendil-works multi-model terminal coding agent) reference covering install, interactive sessions, headless mode, and session/model management. Includes pi, pi -c, pi -p, pi @file, /login, /model. Copy-ready.
Kimi Code CLI Cheatsheet - Moonshot Terminal AI Coding Agent
One-page Kimi Code CLI (Moonshot AI terminal AI coding agent, wired to Kimi models) reference covering install, interactive & single instructions, and sessions & models. Includes kimi, kimi -p, kimi -C, /login, /init, /model. Copy-ready.
Grok CLI Cheatsheet - xAI Grok Build Terminal Coding Agent
One-page Grok CLI (xAI Grok Build terminal AI coding agent) reference covering install, interactive sessions, and headless mode. Includes grok, grok -p, grok inspect, XAI_API_KEY, /model. Copy-ready.
Warp Agent CLI Cheatsheet - In-Terminal AI Coding Agent
One-page Warp Agent CLI (AI coding agent built into the Warp terminal) reference covering install, core agent commands, and integrations & cloud agents. Includes /agent, /model, /plan, /orchestrate, /mcp, oz agent run. Copy-ready.
AI Prompts
14 cheatsheetsPrompt Engineering General Techniques Cheatsheet - Role/Structure/Constraints/CoT
One-page model-agnostic prompt engineering techniques covering role anchoring, structured output, explicit constraints, Few-shot, Chain of Thought, self-verification, and pitfalls. Copy-ready templates, not tied to any specific tool.
RAG Prompt Cheatsheet - Context-grounded Answers & Hallucination Control
One-page Retrieval-Augmented Generation (RAG) prompt patterns covering answer-only-from-context, cite sources, handle no-answer, fuse multi-passage evidence, and flag conflicts. Copy-ready, emphasizing traceability and hallucination control.
AI Agent System Prompt Cheatsheet - Role/Tools/Guardrails/Reflection
One-page autonomous-agent system-prompt patterns covering goal/role definition, tool declarations, step-by-step decision loops, guardrails & permissions, error handling and reflection. Copy-ready, emphasizing control and safety.
Text-to-Image Prompt Cheatsheet - Subject/Style/Composition/Light/Params
One-page text-to-image (Midjourney/Stable Diffusion/SDXL, model-agnostic) prompt structure covering subject, style & artists, composition & lens, light & material, negative prompts, and common params. Copy-ready.
Code-generation Prompt Cheatsheet - Requirement/Context/Constraints/Acceptance
One-page code-generation prompt patterns covering requirement & context handoff, language/framework/version constraints, I/O contracts, edge cases & tests, and acceptance criteria. Copy-ready, emphasizing compilable, runnable output.
DeepSeek Prompts Cheatsheet - R1 Reasoning & V3 Chat Writing Techniques
One-page DeepSeek prompt writing cheatsheet, distinguishing the reasoning model R1 (deepseek-reasoner) from the chat model V3 (deepseek-chat). Covers R1 hard rules (no system prompt, instructions in user, no few-shot, temperature 0.6) and V3 system-lock, few-shot, JSON/function calling. Copy-ready templates.
Shortcuts
5 cheatsheetsVSCode Keyboard Shortcuts Cheatsheet
One-page VSCode keyboard shortcuts reference covering General, Editing, Navigation, Search, Window Management, and Terminal. macOS and Windows side-by-side, 30+ high-frequency shortcuts. Quick lookup.
macOS Keyboard Shortcuts Cheatsheet
One-page macOS keyboard shortcuts reference covering General, Finder, Screenshots, Window Management, System, and Text Editing. 30+ high-frequency shortcuts to boost Mac productivity.
Windows Keyboard Shortcuts Cheatsheet
One-page Windows keyboard shortcuts reference covering General, File Explorer, Screenshots, Window Management, System, and Command Line. 30+ high-frequency shortcuts to boost Windows productivity.
Chrome Browser Keyboard Shortcuts Cheatsheet
One-page Chrome browser keyboard shortcuts reference covering Tabs, Windows, Browsing, Address Bar, DevTools, and Mouse. macOS and Windows side-by-side, 25+ high-frequency shortcuts.
Slack Keyboard Shortcuts Cheatsheet
One-page Slack keyboard shortcuts reference covering Messages, Channels, Navigation, Search, and Formatting. macOS and Windows side-by-side, 20+ high-frequency shortcuts for team collaboration.