cURL Cheatsheet for API Testing
Essential cURL commands for testing REST APIs, handling auth, uploading files, and debugging HTTP requests from the terminal.
Docker Full System Cleanup
Reclaim disk space by pruning unused Docker images, containers, volumes, and networks in one shot.
Docker Compose Stack — Postgres + Redis + App
Production-ready Docker Compose template with PostgreSQL, Redis, health checks, persistent volumes, and environment management.
Protect SSH with Fail2Ban
Install and configure Fail2Ban to automatically block brute-force SSH attacks on your Linux server.
Git Undo Cheatsheet — Fix Every Mistake
How to undo commits, unstage files, recover deleted branches, and fix every common Git mistake without losing work.
Install NVM and Manage Node.js Versions
Install Node Version Manager and switch between Node.js versions per project.
Kubectl Context Switching Cheatsheet
Quickly switch between Kubernetes clusters and namespaces without editing kubeconfig manually.
Linux Performance Triage in 60 Seconds
The first 10 commands to run when a Linux server is slow — CPU, memory, disk, network, and process diagnostics in under a minute.
Nginx Reverse Proxy Setup for Any App
Configure Nginx as a reverse proxy with SSL termination, WebSocket support, and security headers for production deployments.
Generate Self-Signed SSL Certificate
Create a self-signed TLS certificate for local development or internal services using OpenSSL.
SSH Tunnel Patterns
Common SSH port forwarding patterns for accessing remote databases, dashboards, and services securely.
Systemd Service Unit Template
Create a systemd service to run any binary or script as a managed background service on Linux.