Developer Cheatsheet

A collection of 192+ command cheatsheets covering Docker, Kubernetes, Git, Linux, Nginx, MySQL, Python, JavaScript and more. Find fast, copy directly.

Instant Search Weekly Updates Bilingual Open Source
188Cheatsheets
1,144Groups
7,213Commands
12Categories

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.

SysOps

41 cheatsheets
View All

Linux Troubleshooting Cheatsheet - System Fault Diagnosis Command Reference

A one-stop Linux troubleshooting reference organized by process/load, port/network, disk/memory, and logs/services, helping you quickly spot performance bottlenecks, connection anomalies, and resource hogs during live incidents.

Vim Cheatsheet - Editor Command Reference

A Vim operation reference covering cursor motion, text editing, search and replace, visual mode, and save/exit, aimed at developers and operators editing files on a server, including real-world tricks such as batch replacement and saving with sudo.

Systemd Cheatsheet - Systemd Service Management Command Reference

A Systemd service-management reference covering start/stop and boot-enabling, journalctl log viewing, timer scheduling, targets and runlevels, and resource limits, with the differences between easily-confused pairs such as reload vs restart and mask vs disable.

Cron Cheatsheet - Cron Expression & Task Scheduling Reference

A Cron scheduling reference spanning the 5-field expression format, special characters and time macros, common examples, environment variables, and troubleshooting, flagging frequent pitfalls such as the OR relationship between day-of-month and day-of-week and the minimal default PATH.

CI/CD Commands Cheatsheet - CI/CD Pipeline Debugging Reference

A debugging reference for GitHub Actions, GitLab CI, and Jenkins pipelines, covering job reruns and log extraction, runner online status, cache and disk usage, and local reproduction with act or gitlab-runner exec.

MQ Commands Cheatsheet - Kafka/RabbitMQ/RocketMQ Reference

An MQ operations reference for Kafka, RabbitMQ, RocketMQ, and Redis Pub/Sub, focused on the four high-frequency scenarios of locating consumer backlog, hunting connection leaks, diagnosing cluster state, and benchmarking throughput.

Languages

35 cheatsheets
View All

Python Cheatsheet - Command Reference

For developers who use Python as their scripting and data-processing workhorse: covers venv/pip environments, built-in containers, list comprehensions, file and JSON I/O, exception handling, and common built-ins, ready to apply to real projects.

JavaScript Cheatsheet - ES6+ Command Reference

An ES6+ syntax reference for frontend and full-stack developers: let/const, arrow functions, destructuring, template literals, higher-order array methods, and Promise/async-await — the patterns used most in everyday React/Vue and Node code, ready to reuse.

Go Cheatsheet - Go Syntax & Concurrency Reference

For Go developers building backend services, cloud-native tooling, and CLIs: covers variables & types, control flow, functions and defer, structs & methods, interfaces, goroutine/channel concurrency, and error handling, organized by the coding scenarios you hit in practice.

NumPy Cheatsheet - NumPy Functions & Array Operations Reference

For Python developers doing data analysis, numerical computing, and scientific simulation: covers array creation, indexing & slicing, shape manipulation, math & statistics, random numbers, and the often-misunderstood broadcasting rule, arranged from creating an array to saving it to disk.

Java Cheatsheet - Java & JVM Command Reference

For Java backend and ops developers: covers compiling, running and packaging with javac/java/jar, Maven/Gradle build flows, JVM heap and GC tuning flags, and online troubleshooting with jps/jstack/jmap/jstat, organized in a build → run → tune → debug sequence you can copy.

PHP Cheatsheet - PHP & Composer Command Reference

For PHP developers and the ops people deploying PHP apps: covers running scripts and the built-in dev server, Composer dependency management, extension and ini config checks, php -l linting and phpinfo diagnostics, grouped by the real dev workflow.

Web Services

13 cheatsheets
View All

curl / wget Cheatsheet - Command-line File Download & HTTP Requests

For engineers working without a browser who need to call APIs and download with resumable transfers — covering GET/POST requests, headers & cookies, resumable download, proxy auth, and debugging with both curl and wget, plus a side-by-side comparison so you pick the right tool per task.

Nginx Cheatsheet - Nginx Configuration & Command Reference

An Nginx configuration handbook for backend, DevOps, and frontend-integration engineers, covering nginx -t/-s reload syntax validation and hot reload, location matching priority, proxy_pass reverse proxies, access/error log troubleshooting, and the common causes of 502/504.

curl Cheatsheet - curl HTTP Debugging Command Reference

A curl request and troubleshooting handbook for backend developers, testers, and ops, covering GET/POST request bodies, -v/-I/-w request details and timing analysis, -k/-x TLS and proxies, -u/-F/-o auth and upload, plus practical combinations of cookies, redirects, and timeout retries.

HTML Cheatsheet - HTML Tags & Attributes Reference

An HTML reference for building accessible, semantic web pages — document structure, text, lists, links & images, tables, forms, and the semantic tags that convey meaning to both browsers and screen readers.

CSS3 Cheatsheet - CSS3 Properties & Layout Reference

A CSS reference for styling pages without a framework, covering selectors, the box model, Flex/Grid layout, positioning, transitions & animation, and responsive patterns for both desktop and mobile.

Emmet Cheatsheet - Emmet Abbreviation & Syntax Reference

An Emmet abbreviation reference for anyone writing HTML/CSS by hand in VSCode, covering structure expansion, nesting & grouping, attribute and counter shortcuts, and CSS shorthand that turns long markup into a single keystroke.

Databases

9 cheatsheets
View All

SQL Cheatsheet - Common Query Syntax & Examples

For developers who write SQL that must be both correct and fast, covering the specifics of SELECT, JOIN, aggregation and GROUP BY traps, subqueries, window functions (ROW_NUMBER/RANK/LAG), NULL semantics, transactions, and DDL — each with a locally runnable example showing the expected behavior.

MySQL Cheatsheet - MySQL Command Reference

A MySQL command handbook for DBAs, backends, and data analysts, covering database & table management, CRUD, index optimization and slow-query localization with EXPLAIN, user privileges, logical backup & recovery, and replication — highlighting operations that can lock tables or stall replication.

PostgreSQL Cheatsheet - PostgreSQL Command Reference

A PostgreSQL command handbook for backend engineers, DBAs, and data analysts, covering connection & role management, database & table operations, EXPLAIN analysis, lock & transaction troubleshooting, pg_dump/pg_restore backup & recovery, and streaming replication, with paths for locating lock waits and table bloat.

Redis Cheatsheet - Redis Command Reference

A Redis command handbook for the cache/backend and its operators, covering string and per-data-structure operations, key space and TTL management, RDB/AOF persistence trade-offs, memory and big-key inspection, slow query monitoring, cluster & replication, and practical debugging of hot keys, big keys, and cache puncturing/cascading.

MongoDB Cheatsheet - MongoDB Command Reference

A MongoDB reference for backend engineers, covering database & collection management, document CRUD, query operators, index strategies that keep queries off full collection scans, the aggregation pipeline, and replica-set vs sharded-cluster responsibilities.

Neo4j Cypher Cheatsheet - Neo4j Graph Database Command Reference

A Neo4j Cypher reference for working with graph data where relationships matter more than rows, covering node & relationship creation, pattern matching, updates & deletes, aggregation and ordering, constraints & indexes, and traversal-style graph queries.

Containers & Orchestration

4 cheatsheets
View All

Docker CLI Cheatsheet - Command Reference

A Docker command handbook for developers and operators, walking through image build, container lifecycle, networks & volumes, and Compose orchestration, with key flags and real-world troubleshooting for both local development and production deployment.

kubectl Cheatsheet - Command Reference

A kubectl command handbook for app developers and cluster operators, covering Pod query & log diagnosis, deployment scaling & rolling updates, context & namespace switching, and event troubleshooting, with full debugging paths for CrashLoopBackOff and ImagePullBackOff.

Docker Compose Cheatsheet - Command Reference

A Docker Compose command handbook for frontend, backend, and DevOps engineers who manage several services as one unit, covering multi-service orchestration, log tracking & status inspection, config validation & build, network & named volume management, and horizontal scaling, with mitigation and troubleshooting for frequent incidents like down -v data loss and --scale port conflicts.

Dockerfile Cheatsheet - Docker Image Build Reference

A Dockerfile writing reference for developers who package applications into images, covering base image selection, RUN execution, COPY/ADD file handling, ENV variables, port declaration, multi-stage builds, and layer size optimization — with the build cache and .dockerignore pitfalls that silently blow up image size.

Reference

15 cheatsheets
View All

Regex Cheatsheet - Common Patterns & Syntax Reference

Regex syntax and high-frequency patterns: character classes, anchors, quantifiers, groups & backreferences, lookahead/lookbehind, greedy vs lazy matching, plus editable templates for email, URL, phone and ID. Each metacharacter is explained so you understand why a pattern works, not just copy it.

HTTP Methods Cheatsheet - REST/HTTP Verbs & Idempotency

HTTP methods and REST semantics: GET/POST/PUT/PATCH/DELETE verbs, idempotency, safe methods, status-code pairing and common misuses. For choosing the right verb when designing APIs so retries and concurrency behave predictably. Pairs with the HTTP Status Codes sheet.

HTTP Status Codes Cheatsheet - HTTP Response Status Code Reference

Every HTTP response status code from 1xx to 5xx with its meaning, common cause and a debugging hint. Built for backend/frontend developers and Nginx/gateway ops to pinpoint why an API misbehaves — distinguishing 4xx from 5xx and checking whether redirects behave as expected.

Markdown Cheatsheet - Markdown Syntax Reference

A Markdown syntax reference covering headings, text formatting, links & images, lists, code blocks, tables, blockquotes and GFM extensions, with cross-platform caveats. For writing technical docs, READMEs and blog posts that stay clean and portable.

LaTeX Cheatsheet - LaTeX Academic Typesetting Reference

LaTeX commands for academic typesetting, grouped into document structure, text formatting, math formulas, list environments, tables/figures and references. For writing papers, reports and theses in LaTeX rather than fighting the tool.

ASCII Code Cheatsheet - ASCII Character Encoding Reference

ASCII codes for control and printable characters, each shown in decimal, hex, octal and HTML-entity forms, plus notes on Latin-1 extension and how to convert codes in common programming languages. For encoding and protocol debugging.

Dev Tools

18 cheatsheets
View All

VSCode Cheatsheet - VS Code Shortcut Reference

High-frequency VSCode shortcuts covering the Command Palette, multi-cursor editing, file & code navigation, refactoring, debugging and Git integration. For developers who want to stop reaching for the mouse while refactoring and switching files — both macOS and Win/Linux keybindings are listed.

Emacs Cheatsheet - Emacs Shortcut Reference

Emacs keystrokes covering file & buffer operations, cursor movement and editing, search/replace, window management, keyboard macros and Org-mode, with the C/M prefix conventions explained. For terminal or no-GUI editing where Vim-style modal editing is not an option.

ChatGPT Cheatsheet - AI Prompt Reference

Prompt-design patterns and templates for ChatGPT: role assignment, task framing and step breakdown, output-format constraints, few-shot examples and chain-of-thought steering — with common office, coding and writing scenarios. For turning vague asks into consistent, controllable model output.

Pandoc Cheatsheet - Document Conversion Command Reference

Pandoc conversion commands across Markdown/HTML/PDF/DOCX/EPUB interchange, Chinese PDF typesetting and fonts, custom templates and styles, slides and e-books, citations and math. For converting documents without re-keying content or breaking layout.

Homebrew Cheatsheet - macOS Package Manager Reference

Homebrew commands for installing/updating/removing formulas, managing Cask GUI apps, starting and stopping services, switching to domestic mirrors, and inspecting dependencies and debugging broken installs. For keeping a macOS dev environment reproducible.

XPath Cheatsheet - XML/HTML Selector Syntax Reference

XPath selector syntax: node paths, predicate filtering, axis navigation, string/functions and wildcard/logic, plus XML/HTML parsing and scraping patterns. For locating elements precisely in XML, HTML or config files without brittle regex.

Config Formats

6 cheatsheets
View All

Env Vars Cheatsheet - .env Config & dotenv Usage

An environment-variable reference for Node/Python/frontend developers writing .env and integrating dotenv, covering variable definition, shell and per-language reading, dotenv usage, multi-environment file organization, and security pitfalls such as secret leakage.

.dockerignore Cheatsheet - Docker Build Context Ignore Rules

For developers shipping with Docker and slimming images: explains .dockerignore glob matching, ignoring files and directories, differences from .gitignore, build-context slimming tips and common pitfalls. A correct ignore file sharply shrinks the context sent to the daemon.

YAML Cheatsheet - YAML Syntax Reference

A YAML syntax reference for developers who write Docker Compose, Kubernetes and GitHub Actions configs, covering basic syntax, data types, lists, dicts, multiline strings, anchors and explicit type tags. Consult section by section while validating indentation and common write errors.

JSON Cheatsheet

A JSON reference for frontend/backend developers who handle API payloads and JSON config, covering data types, objects, arrays, nesting, common API response patterns, and validation/formatting commands. Consult section by section when a key quotation, comma or nested brace causes an error.

TOML Cheatsheet - TOML Configuration Reference

A TOML reference for developers writing Rust/Cargo, Hugo and Python pyproject.toml config, covering basic types, date-time, strings, arrays and tables, arrays of tables, and a Cargo.toml example. Section-by-section lookup helps avoid type and structure ambiguity.

INI Cheatsheet - INI Configuration Reference

An INI reference for developers working with Windows config, PHP php.ini, Git config and Python configparser files, covering basic syntax, data types, common real-world sections and cross-parser pitfalls.

AI CLI

27 cheatsheets
View All

Hermes Agent CLI Cheatsheet - Nous Terminal Multi-Backend AI Agent

Command reference for Hermes Agent, Nous Research open-source, model-agnostic terminal AI agent: install, model & tool configuration, message gateway, and setup wizard, covering hermes model, hermes tools, hermes config set, and hermes gateway.

Kilo Code CLI Cheatsheet - Terminal Open-source Coding Agent

Command reference for Kilo Code CLI, the terminal AI coding agent sharing an engine with the IDE extensions: install, interactive & one-off tasks, and model integrations, covering kilo run, kilo --mode, kilo --auto, kilo auth, and kilo mcp.

Pi CLI Cheatsheet - earendil Terminal Multi-Model Coding Agent

Command reference for Pi, the earendil-works multi-model terminal coding agent: install, interactive sessions, headless mode & scripting, and session/model management, covering pi -c, pi -p, pi @file, /login, and /model.

Kimi Code CLI Cheatsheet - Moonshot Terminal AI Coding Agent

Command reference for Kimi Code CLI, Moonshot AI terminal AI coding agent wired to Kimi models: install, interactive & single instructions, and sessions & models, covering kimi -p, kimi -C, /login, /init, and /model.

Grok CLI Cheatsheet - xAI Grok Build Terminal Coding Agent

Command reference for Grok CLI, the xAI Grok Build terminal AI coding agent: install, interactive sessions, session management, headless mode, and scripting, covering grok -p, grok inspect, XAI_API_KEY, and /model.

Warp Agent CLI Cheatsheet - In-Terminal AI Coding Agent

Command reference for Warp Agent CLI, the AI coding agent built into the Warp terminal: install, core agent commands, MCP integration, and cloud agents, covering /agent, /model, /plan, /orchestrate, /mcp, and oz agent run.

AI Prompts

14 cheatsheets
View All

Prompt Engineering General Techniques Cheatsheet - Role/Structure/Constraints/CoT

Model-agnostic prompt engineering techniques covering role anchoring, structured output, explicit constraints, Few-shot, Chain of Thought, self-verification, and common pitfalls, not tied to any specific tool.

RAG Prompt Cheatsheet - Context-grounded Answers & Hallucination Control

Retrieval-Augmented Generation (RAG) prompt patterns covering answer-only-from-context, cite sources, handle no-answer, fuse multi-passage evidence, and flag conflicts — emphasizing traceability and hallucination control.

AI Agent System Prompt Cheatsheet - Role/Tools/Guardrails/Reflection

Autonomous-agent system-prompt patterns covering goal/role definition, tool declarations, step-by-step decision loops, guardrails & permissions, error handling, and reflection — emphasizing control and safety.

Text-to-Image Prompt Cheatsheet - Subject/Style/Composition/Light/Params

Model-agnostic text-to-image (Midjourney/Stable Diffusion/SDXL) prompt structure covering subject, style & artists, composition & lens, light & material, negative prompts, and common params.

Code-generation Prompt Cheatsheet - Requirement/Context/Constraints/Acceptance

Code-generation prompt patterns covering requirement & context handoff, language/framework/version constraints, I/O contracts, edge cases & tests, and acceptance criteria — emphasizing compilable, runnable output.

DeepSeek Prompts Cheatsheet - R1 Reasoning & V3 Chat Writing Techniques

Prompt-writing reference for DeepSeek that distinguishes the reasoning model R1 (deepseek-reasoner) from the chat model V3 (deepseek-chat), covering R1 hard rules (no system prompt, instructions in user, no few-shot, temperature 0.6) and V3 system-lock, few-shot, and JSON/function calling.