Developer Command Cheatsheet

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

Instant Search Weekly Updates Bilingual Open Source
202Cheatsheets
1,205Groups
7,852Commands
12Categories

SysOps

41 cheatsheets
View All

Bash Cheatsheet - Shell Scripting Command Reference

Bash is the default entry point for automating ops and deploys, and the details that make a script robust — default variables, parameter expansion and string slicing, conditionals, and loops — are where the skill lives. This reference covers variables, branches, loops, functions, and common string/file operations for both writing scripts from scratch and debugging existing ones.

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 - Modes, Editing & Search Commands

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.

Languages

35 cheatsheets
View All

Python Cheatsheet - Syntax, List, Dict & File Commands

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

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

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 - Queries, Joins, Users & Indexes

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 - Keys, Strings, Hash & Expire Commands

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 - Run, Build & Compose Commands

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 - Pods, Deploy, Logs & Apply Commands

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 - Keybindings, Buffers & Org Mode

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 - Prompts, Models & API 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 .env and dotenv cheat sheet for Node/Python/frontend developers: variable definition, shell and per-language reading, dotenv usage, multi-environment file organization, and security pitfalls such as secret leakage — check every line before you deploy.

.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 - Syntax, Anchors, Lists & Examples

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 - Syntax, Data Types & Parsing Examples

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 - Sections, Keys & Config File Syntax

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

41 cheatsheets
View All

Open Interpreter CLI Cheatsheet - Terminal AI Coding Agent Full Reference

Full command reference for Open Interpreter, a terminal AI coding agent: install and launch, --local local models, -y auto-accept, --os OS control, --api_base custom endpoint, resume --last session restore and /model interactive commands, all matched to official docs.

llamacpp (llama.cpp) CLI Cheatsheet - llama-cli Reference

llamacpp (llama.cpp) llama-cli complete command reference: model load -m, interactive -i, GPU offload -ngl, context -c, threads -t, --temp sampling and -cnv chat, all matched to official docs.

MLC-LLM CLI Cheatsheet - mlc_llm Compile and Serve Full Reference

Full command reference for MLC-LLM mlc_llm CLI: chat interactive, serve local server, convert model, plus --device, --quantization, --model-lib flags, all matched to official docs.

LocalAI CLI Cheatsheet - local-ai Self-hosted Inference Server Full Reference

Full command reference for LocalAI local-ai CLI: run and serve to start, models list/install/pull for management, api and finetune commands, all matched to official docs.

LM Studio CLI Cheatsheet - lms Model Management Full Reference

Full command reference for LM Studio lms CLI: status, ls and ps to list models, get to download, load and unload, server start, and terminal chat, all matched to official docs.

GPT Engineer CLI Cheatsheet - gpte Code Generation Full Reference

Full command reference for GPT Engineer gpte and gpt-engineer CLI: create projects, improve code with -i, --model selection, --steps workflows, and --temperature, all matched to official docs.

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

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 - Style Guide

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 & Best Practice

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.