Cheatsheets

Quick-reference docs for the tools and workflows that matter most when shipping code.

Containers

Docker, Compose, Kubernetes — quick refs for shipping containers.

Servers

Web servers and process managers.

PHP

PHP CLI tools, Composer, frameworks.

DevOps

Git, CI, shell, ops tools.

SSH

Essential SSH commands for servers, keys, tunnels, and deploys — including deploy-key patterns, ssh-agent forwarding, and key-rotation playbooks.

Claude Code

Claude Code commands, hooks, and MCP setup with deployment recipes — Dockerfile generation, CI debugging, SSH config drafting, rollback plans.

curl

Essential curl commands for HTTP requests, deploy webhooks, post-deploy smoke tests, healthcheck loops, and `--fail` discipline in CI pipelines.

Bash

Bash scripting reference for deploy hooks — variables, conditionals, arrays, traps, `set -euo pipefail`, lockfiles, and idempotent file ops.

rsync

rsync reference for deploy workflows — atomic releases, exclude patterns, `--delete` safety, restartable transfers over SSH, and bandwidth caps.

Cron

Cron and crontab reference — schedule syntax, special strings, per-deploy crontab management, flock locks, log capture, and systemd timer alternatives.

jq

jq reference for deploy pipelines — parsing GitHub/GitLab webhooks, extracting commit SHAs, filtering CI logs, and using --exit-status as a deploy gate.

Git

Git command reference for deployments — branching strategy, tag-based releases, git archive for clean artifacts, force-push safety, and recovery.

systemd

systemd reference for production servers — systemctl, journalctl, unit-file hardening, timers, and integration into deploy hooks.

PostgreSQL

psql and PostgreSQL reference for deploys — connecting, \d inspection, safe migrations with CREATE INDEX CONCURRENTLY, pg_dump backups, app roles.

Linux Commands

Linux commands grouped by deployment task — diagnose failed deploys, read logs, fix permissions, free disk, kill stuck processes, restore backups.