Cheatsheets

Scannable lookups with copy-ready code — not long-form articles.

  • Algorithm & Data Structure Cheatsheet

    Big O complexity tables plus recognition cues, Go / Python / TypeScript templates, common variants, and classic problems for interview-style data structures and algorithm patterns.

  • Distributed Systems Cheatsheet

    CAP, consistency models, clocks, Raft / Paxos / ZAB, partitioning, replication and quorums, observability and estimation numbers — with real systems, trade-offs and Go sketches.

  • Kubernetes Cheatsheet

    kubectl commands, resource configuration, symptom-driven troubleshooting, production operations and Helm — and how the scheduler, Services, operators and etcd work underneath. Each entry gives the problem, how it works, YAML and kubectl examples, real-world notes and trade-offs.

  • ClickHouse Cheatsheet

    How ClickHouse stores data in MergeTree parts, what ORDER BY and PARTITION BY really do, how replication works with Keeper, and how to distribute and shard tables. Each entry gives the problem, how it works, SQL examples, real-world notes and trade-offs.

  • Kafka Cheatsheet

    How Kafka orders data with partitions and keys, replicates it with the ISR, shares it among consumer groups, tracks offsets, delivers exactly once and cleans up logs. Each entry gives the problem, how it works, configs and commands, real-world notes and trade-offs.

  • Redis Cheatsheet

    How Redis replicates, fails over with Sentinel, shards with Cluster, persists with RDB and AOF, and evicts keys when memory is full. Each entry gives the problem, how it works, redis.conf and redis-cli examples, real-world notes and trade-offs.

  • Go Language Cheatsheet

    Go types, goroutines and channels, sync and context, error wrapping, idioms, the standard library, pprof and the go toolchain — with runnable snippets, pitfalls and quick tables.

  • System Design Interview Cheatsheet

    Estimation numbers and formulas, rate limiter, distributed lock, IDs, queues, caches, classic design questions, SQL vs NoSQL decision paths and a 45-minute interview template.

  • PostgreSQL Cheatsheet

    How PostgreSQL stores and versions rows, which index to pick, how to read EXPLAIN ANALYZE, how locks behave, how to run it in production — and step-by-step playbooks for slow queries, bloat, lock waits, replication lag and full disks. Each entry gives the problem, how it works, SQL examples, real-world notes and trade-offs.

  • Linux Troubleshooting Cheatsheet

    The USE method and a one-minute checklist, then how to triage CPU, memory, disk and network on a Linux host — load average, the OOM killer, iostat, ss and TCP states, tcpdump, perf and strace — plus playbooks for CPU saturation, memory pressure, slow disks, connection exhaustion and unresponsive hosts.

  • Observability & SRE Cheatsheet

    Metrics, logs and traces and how they fit together, Prometheus and PromQL patterns, OpenTelemetry pipelines, SLIs, SLOs, error budgets and burn-rate alerts, Alertmanager routing and cost control — plus playbooks for latency spikes, error-rate jumps, alert storms, missing metrics and cardinality explosions.

  • Docker Cheatsheet

    Image layers and overlayfs, namespaces and cgroups, Dockerfile and BuildKit caching, networking and storage, Compose and hardening — plus playbooks for containers that exit at once, exit codes 137 and 143, full disks and unreachable ports, with commands verified on a real engine.

  • Terraform Cheatsheet

    State and backends, the plan/apply lifecycle, count vs for_each, modules, import and moved blocks, drift, CI workflows and testing — plus playbooks for state locks, unexpected replacement, dependency cycles and slow plans, with examples run on a real Terraform CLI.

  • CI/CD & GitOps Cheatsheet

    Pipeline design and build-once promotion, GitHub Actions permissions, caching and OIDC, untrusted pull requests, deployment strategies and database migrations, then GitOps with Kustomize, Helm, Argo CD and Flux — plus playbooks for slow pipelines, OutOfSync loops, stuck syncs and reverted rollbacks.

  • Regex Cheatsheet

    Regex syntax and engine differences: character classes, quantifiers, lookaround, named groups, Go RE2 versus Python, JavaScript and PCRE, the Go regexp API, ready patterns, and playbooks for catastrophic backtracking and patterns that do not match.

  • SQL Cheatsheet

    SQL reference: execution order, joins, window functions and frames, CTEs, indexes, PostgreSQL and ClickHouse specifics, and a dialect table for PostgreSQL, MySQL, SQLite and ClickHouse, with every example run on real engines.