Programming Cheatsheets
Copy-ready commands and snippets for everyday development tasks, grouped by what you are trying to do and linked to the official docs.
Languages
C#
Modern C# 14 syntax for strings, nullability, collections, LINQ, records, pattern matching, async code and generics.
C++
Compile and debug C++ with g++ and CMake, and use modern C++ (up to C++23): containers, algorithms, smart pointers, templates and threads.
CSS
Layout with flexbox and grid, responsive design, custom properties, animations and modern selectors.
Go
The go command for modules, building, testing and cross-compiling, plus the code patterns you write every day.
HTML
HTML5 page structure, text, links, images, forms, tables and metadata, with accessible patterns.
Java, Maven and Gradle
JDK commands to compile, run and diagnose Java programs, plus the Maven and Gradle commands for builds and tests.
JavaScript
Modern JavaScript for arrays, strings, objects, async code, the DOM and modules, in copy-ready snippets.
Kotlin
Kotlin syntax and idioms: null safety, data classes, collections, extension and scope functions, sealed types and coroutines.
PHP
The php command line and the modern PHP 8 syntax you use every day: types, enums, match, PDO and more.
Python
Run scripts, manage virtual environments and packages, and test and profile Python code.
Regular expressions
Regex patterns for matching, grouping, lookarounds and common formats, plus how to use them in grep, sed, JavaScript and Python.
Ruby
Run Ruby code, manage gems with Bundler, and use blocks, collections, classes, pattern matching and error handling.
Rust and Cargo
Cargo and rustup commands for projects, dependencies, testing and releases, with the Rust patterns you reach for most.
SQL
Everyday SQL for querying, joining, aggregating and changing data, with notes where PostgreSQL, MySQL and SQLite differ.
Swift
Swift tooling and syntax: optionals, structs and enums, protocols, closures, error handling, async/await, actors and SwiftUI basics.
TypeScript
Compiler commands, tsconfig options and the type patterns you use every day.
Frameworks
.NET and ASP.NET Core
The dotnet CLI for creating, building, testing and publishing projects, plus common ASP.NET Core and EF Core code.
Angular
Angular CLI commands and standalone component, signals, template, routing, HTTP and forms snippets.
Astro
Build fast content sites with Astro: components, layouts, routing, content collections, islands, endpoints and deployment.
Django
Create projects, run migrations, test and deploy Django apps, plus the ORM queries you use every day.
Express
Build HTTP servers and APIs with Express 5 on Node.js.
FastAPI
Install, run, test and deploy FastAPI apps from the command line.
Flask
Create, run, test and deploy Flask apps, with routes, templates, blueprints, sessions and database snippets.
LangChain
Python snippets for LangChain 1: models, prompts, agents, tools, structured output, retrieval and tracing.
LangGraph
Python snippets and CLI commands for LangGraph 1: state graphs, routing, memory, human approval, streaming and local dev.
Laravel
Everyday Artisan commands for Laravel 13 projects.
NestJS
Generate and run NestJS apps, and write controllers, providers, DTO validation, guards, interceptors, configuration and tests.
Next.js
Create, run and build Next.js apps, and the App Router patterns you reach for most.
Ruby on Rails
Create apps, generate code, manage the database and run tests with the Rails 8 command line.
Spring Boot
Create, run, test, configure and package Spring Boot applications.
Svelte and SvelteKit
Create Svelte 5 apps and write components with runes, template blocks, snippets and SvelteKit routes, loaders and forms.
Symfony
Create apps, generate code, manage the database and debug with the Symfony CLI and console.
Tailwind CSS
Install, build and configure Tailwind CSS 4 with the CLI, Vite or PostCSS.
Vue
Create Vue 3 apps and write components with the Composition API and script setup.
Libraries
Hugging Face
The hf command line, and Transformers and Datasets code for downloading, running, training and sharing models.
Matplotlib and seaborn
Draw line, scatter, bar and histogram charts with Matplotlib, and statistical charts with seaborn.
pandas and NumPy
Load, clean, reshape, group and analyze tabular data with pandas, and work with arrays in NumPy.
Polars
Fast DataFrames in Python: expressions, filtering, grouping, joins, lazy queries and file formats.
Prisma ORM
Model your database in a schema, run migrations, and query with the type-safe Prisma Client. Examples use the prisma-client-js generator; check the docs for newer generators.
PyTorch
Tensors, autograd, models, training loops, saving and speed-ups in PyTorch 2.
React
Hooks, components and patterns for React 19 in TypeScript or JavaScript.
scikit-learn
Split data, preprocess features, train and evaluate models, tune hyperparameters and save pipelines with scikit-learn.
SQLAlchemy and Alembic
Define models, query and change data with SQLAlchemy 2, and manage schema changes with Alembic migrations.
Content management systems
Runtimes
Databases
DuckDB
Query CSV, Parquet and DataFrames with SQL from Python or the duckdb command line, without running a server.
Elasticsearch
curl requests for indexes, documents, searches, bulk loads and cluster health. Security is on by default, so the examples authenticate.
MongoDB
mongosh shell commands for documents, queries, aggregation, indexes, backups and administration.
MySQL
mysql client, backup and maintenance commands for MySQL 8.4.
PostgreSQL
psql, backup and maintenance commands for PostgreSQL 18.
Redis
redis-cli and core commands for keys, data structures and server administration.
SQLite
sqlite3 shell dot-commands, pragmas, import and export, and the SQL you use most.
Command-line tools
Ansible
Run ad-hoc commands and playbooks, manage inventories, roles, collections and secrets with Ansible.
Apache Kafka
Start a broker, manage topics, produce and consume messages, and inspect consumer groups. Run these from the Kafka install folder.
Argo CD
Install Argo CD, define Applications declaratively, and manage sync, diffs, history and rollbacks with the argocd CLI.
AWS CLI
Configure credentials and manage S3, EC2, Lambda, logs, containers and secrets with the AWS CLI v2.
Azure CLI
Sign in and manage resource groups, VMs, web apps, storage, Kubernetes, registries and secrets with the az command.
Bash and Linux
Everyday shell and Linux commands for files, searching text, permissions, processes and servers.
Claude API
Call Claude from Python, TypeScript or curl: messages, streaming, thinking, tools, structured output, caching, batches and error handling.
Claude Code
Run Claude Code in the terminal: starting sessions, slash commands, permissions, CLAUDE.md, hooks, MCP servers and headless use.
Composer
Manage PHP dependencies, autoloading, scripts and project creation with Composer 2.
curl and jq
Make HTTP requests with curl and slice JSON responses with jq, from the command line.
Docker
Build, run and clean up containers and images, and manage multi-container apps with Docker Compose.
Docker Compose file
compose.yaml snippets for services, ports, volumes, networks, environment, health checks, profiles and development workflows.
FFmpeg
Convert, trim, resize, compress and inspect audio and video from the command line with ffmpeg and ffprobe.
Git
Everyday Git commands for committing, branching, syncing and undoing mistakes.
GitHub Actions
Workflow YAML snippets for triggers, jobs, caching, secrets, matrices, artifacts and deployment.
GitHub CLI
Work with repositories, pull requests, issues, workflow runs and releases from your terminal with gh.
GitLab CI/CD
.gitlab-ci.yml snippets for stages, jobs, rules, caching, artifacts, services, environments and reuse.
GNU Make
Write Makefiles with targets, variables, pattern rules and phony targets, and the options for running make.
Google Cloud CLI (gcloud)
Sign in and manage projects, Compute Engine, Cloud Run, storage, Kubernetes, logs and secrets with gcloud.
Helm
Install, upgrade, inspect and roll back Kubernetes applications packaged as Helm charts.
HTTP
Request methods, status codes, headers, caching, cookies and security headers, with curl commands to inspect them.
Jenkins
Declarative Jenkinsfile syntax for stages, agents, credentials, parameters, parallel steps and notifications, plus running Jenkins.
Jupyter
Run notebooks with JupyterLab, use IPython magics, register kernels, convert notebooks and run them from scripts.
kubectl
Inspect, deploy, debug and scale workloads on a Kubernetes cluster.
Kubernetes manifests
YAML for the Kubernetes resources you write most: Deployments, Services, Ingress, config, storage, probes, scaling and access control.
Linux networking
Inspect interfaces, routes, ports and DNS, test connectivity, capture packets and manage firewalls with Linux networking tools.
Model Context Protocol (MCP)
Build MCP servers in Python and TypeScript, test them with the Inspector, and connect them to Claude Code and Claude Desktop.
Nginx
Control Nginx, test and reload configuration, and the config snippets for proxies, TLS, static sites and caching.
Ollama
Run large language models locally: pull and run models, customize them with a Modelfile, call the REST API, and configure the server.
OpenSSL
Generate keys and certificates, inspect and verify TLS certificates, convert formats, hash and encrypt with OpenSSL 3.
Prometheus and PromQL
Query metrics with PromQL, and configure scraping, recording rules, alerts and the promtool checker.
SSH (OpenSSH)
Connect to servers, manage keys, write ~/.ssh/config, forward ports, jump through bastion hosts and harden sshd.
systemd and journalctl
Manage services, read logs, schedule timers and write unit files on Linux systems that use systemd.
Terraform
Write, plan, apply and manage infrastructure as code with the Terraform CLI.
tmux
Sessions, windows and panes in tmux, with the default Ctrl-b prefix, copy mode and configuration.
Vim
Keystrokes for exiting, moving, editing, searching and working with files in Vim, including how to quit it.
No cheatsheets match your filter.