Hostinger
High-Speed Web & Cloud Hosting
Deploy production Next.js, Node.js, and Python web apps on NVMe cloud servers with free domain, Git workflow, and SSL.
- Ultra-Fast NVMe Storage
- Automated SSL & Git Deploy
- High Uptime SLA
Instant syntax lookups, command flags, production recipes, and keyboard shortcuts across modern programming languages, cloud platforms, and DevOps tools.
Showing 50 curated cheat sheets with verified copyable syntax & CLI recipes
Essential Git commands, branch operations, interactive rebasing, stashing, and commit history manipulation.
Production container lifecycle, multi-stage builds, Docker Compose orchestration, volume management, and system pruning.
Battle-tested kubectl commands, pod debugging, rollouts, namespace management, ingress, and cluster troubleshooting.
Everyday Bash CLI commands, system diagnostics, permissions, networking sockets, processes, and disk management.
Essential AWS command-line interface commands for S3, EC2, Lambda, Secrets Manager, CloudWatch, and STS security.
Infrastructure as Code (IaC) workflows, state management, module inputs, planning, locking, and provider configurations.
Helm 3 chart repositories, declarative values overrides, release lifecycles, template rendering, and rollback procedures.
Production Nginx reverse proxy directives, SSL/TLS termination, rate limiting, gzip compression, and upstream load balancing.
Agentless infrastructure automation, ad-hoc commands, inventory files, encrypted vaults, roles, handlers, and idempotent recipes.
YAML workflow syntax, matrix builds, automated testing, artifact publishing, caching, and repository secrets injection.
Production psql commands, EXPLAIN ANALYZE performance tuning, index creation, backups, and active lock diagnostics.
Redis command syntax, strings, hashes, sorted sets, pub/sub, expiration TTLs, clustering, and memory monitoring.
Standard ANSI SQL queries, complex table joins, aggregate window functions, common table expressions (CTEs), and indexing.
Document database operations, aggregation pipelines, update operators, compound indexes, and sharding fundamentals.
Lightweight embedded SQL commands, schema introspection, WAL mode performance tuning, and database dumping.
Index management, boolean search queries, match aggregations, cluster health, and mapping configurations.
Real-time columnar database queries, MergeTree table engines, partitioning, data mutation, and analytical benchmarks.
Topic administration, consumer groups, partition management, producer testing, offset resets, and cluster inspection.
Test Linux commands, Docker flags, and Kubernetes manifests on isolated high-performance cloud servers.
High-Speed Web & Cloud Hosting
Deploy production Next.js, Node.js, and Python web apps on NVMe cloud servers with free domain, Git workflow, and SSL.
Security & Global API Geo-Testing
Protect developer workstations on public Wi-Fi and verify localized APIs, CDNs, and web services across global high-speed servers.
Lifetime Software & AI Tool Deals
Eliminate recurring monthly SaaS bills. Get lifetime access to top AI coding tools, SEO suites, and developer productivity apps.
Affiliate Disclosure: Some links above are partner referral links. If you make a purchase through them, HelloAIHub may earn a commission at no additional cost to you. We only recommend services vetted for developer productivity, software architecture, and engineering infrastructure.
Focused questions covering internals, runtime edge cases, security, and practical troubleshooting for Developer Cheat Sheets.
We provide interactive, copy-paste quick-reference cheat sheets for Docker, Git & GitHub, Linux CLI, Regular Expressions (Regex), Python, SQL queries, Markdown formatting, and Bash scripting.
Cheat sheets are engineered for rapid syntax and CLI command lookups with zero fluff during active development. Technology guides provide deep architectural explanations, interactive quizzes, and full tutorials.
Yes. Every command, flag, regular expression, and code snippet is written for current stable software runtimes (Docker 26, Git 2.45+, Linux Kernel 6+, Python 3.14, PostgreSQL 16+).
Yes. All cheat sheets are formatted with high-contrast monospace code blocks and responsive layouts optimized for quick desktop bookmarking and clean A4/US Letter printing.
Yes. All cheat sheets, regex patterns, shell aliases, and configuration snippets are 100% free and open-source for personal and commercial development.
Commands are grouped by functional workflow (e.g. Git Branching, Remote Syncing, Stashing, History Rewriting; Docker Container Lifecycle, Volumes, Networks, Multi-Stage Builds) with syntax and short descriptions.
Yes. Each cheat sheet page includes a real-time instant search bar that filters commands and syntax patterns dynamically as you type.
Our technical editorial board regularly updates existing cheat sheets with modern flags and publishes new cheat sheets for emerging frameworks and cloud tools.
Yes. The entire platform includes a toggleable dark mode designed with high-contrast color palettes for comfortable viewing during long coding sessions.
Yes. Every code snippet and terminal command features a one-click copy button with instant visual confirmation.
Modern Git introduces `git switch <branch>` for branch navigation and `git restore <file>` for discarding uncommitted changes, replacing the overloaded legacy `git checkout` command.
Docker Compose v2 is written in Go and integrated natively as a Docker CLI plugin (`docker compose` instead of `docker-compose`), executing concurrent container startups and buildx caching faster.
Combining `ripgrep` (`rg`), `awk`, `sed`, and `sort --parallel` processes multi-gigabyte log files in seconds by leveraging SIMD vectorization and multi-threaded CPU execution.
Non-capturing groups group pattern components without allocating memory to store submatch capture buffers, reducing regex engine memory overhead during large document scans.
Ensure filter predicates are SARGable (avoid wrapping indexed columns in functions like `WHERE YEAR(created_at) = 2026`), and use `EXISTS` instead of `IN` for correlated subqueries.
List comprehensions execute optimized C-level iteration loops within the CPython interpreter bytecode (`BUILD_LIST` and `LIST_APPEND`), bypassing Python frame evaluation overhead.
Native parameter expansions like `${VAR#prefix}`, `${VAR%suffix}`, `${VAR//search/replace}`, and `${#VAR}` execute directly inside the Bash shell process without spawning expensive subshell forks.
`git sparse-checkout` allows developers to clone and populate only specific subdirectories of a giant repository, reducing local disk usage and Git status scan times.
Run `docker system prune -a --volumes` to safely purge all stopped containers, unused networks, dangling images, and buildx build cache in a single command.
`xargs -P <num_cores> -n 1 command` executes arguments in parallel across multiple worker processes, drastically reducing batch processing times for image conversions or file compression.
`git merge` combines branches with a dedicated merge commit, preserving exact historical chronological order. `git rebase` rewrites commit history onto the target branch tip, producing a clean, linear commit graph.
Bridge networks isolate containers on a single host. Host network shares the host's network namespace directly for maximum speed. Overlay networks enable encrypted multi-host networking across Swarm/Kubernetes.
Interactive rebase allows developers to squash fixup commits, reword commit messages, reorder commits, or drop accidental changes before opening a pull request.
`-d` runs containers detached in the background. `-it` allocates an interactive pseudo-TTY attached to the container's stdin/stdout for real-time shell sessions.
`git stash push -m 'wip-feature'` saves uncommitted working changes to the stash stack. `git stash branch <new_branch>` creates a fresh branch from the stashed state and pops the changes.
Named volumes (`-v pgdata:/var/lib/postgresql/data`) store data in Docker-managed host storage outside the container layer, ensuring zero data loss when containers are destroyed or updated.
`git cherry-pick <commit_sha>` applies the exact diff changes of a specific commit from another branch onto your current branch without merging the entire branch history.
Appending `&` launches commands in background. `nohup` prevents SIGHUP signals on terminal close. `jobs` lists active background tasks, and `fg %1` brings task 1 to the foreground.
`INNER JOIN` returns matching rows in both tables. `LEFT JOIN` returns all left table rows with matching right rows (or NULL). `FULL OUTER JOIN` returns all rows from both tables.
`git bisect start`, `git bisect bad`, and `git bisect good <sha>` conducts a binary search through commit history, checking out midpoint commits for automated testing until pinpointing the exact introducing commit.
Permissions sum Read (4), Write (2), and Execute (1) across User, Group, and Others. `chmod 755` grants `rwxr-xr-x` (owner full, group/others read/exec); `chmod 600` grants `rw-------` for private SSH keys.
Running as non-root (`USER appuser`) prevents container breakout attacks from inheriting root privileges on the underlying host operating system kernel.
Avoid nested quantifiers on overlapping character classes (like `(a+)+$`). Use atomic grouping, possessive quantifiers (`++`), or explicit anchor boundaries to prevent exponential backtracking.
Generate Ed25519 SSH keys (`ssh-keygen -t ed25519`), configure `git config --global user.signingkey <key_id>`, and enable `git config --global commit.gpgsign true` for cryptographic commit verification.
`--force` blindly overwrites remote branches, erasing teammates' commits. `--force-with-lease` only allows overwriting if your local ref matches the remote ref, preventing accidental data loss.
Always double-quote variable expansions (`"$USER_INPUT"`), use `printf '%q'` for shell-escaping, and validate inputs against strict regular expression whitelists.
Always use parameterized query placeholders (`$1`, `?`) in ORMs and drivers; never concatenate raw string inputs directly into SQL `EXECUTE` or `query()` calls.
Adding `.env`, `.git`, `node_modules`, and `credentials.json` to `.dockerignore` ensures sensitive local files are excluded from the Docker build context and final image artifacts.
Positive lookahead `(?=...)` and negative lookahead `(?!...)` assert conditions ahead without consuming characters; positive lookbehind `(?<=...)` and negative lookbehind `(?<!...)` assert conditions behind.
Use `ufw default deny incoming`, `ufw allow 22/tcp` (SSH), `ufw allow 80/tcp` (HTTP), `ufw allow 443/tcp` (HTTPS), and `ufw enable` for hardened server firewall protection.
Run `git reflog` to view the chronological history of all HEAD movements, find the SHA prior to the deletion, and run `git checkout -b recovered-branch <sha>` to restore all lost work.
Run `docker logs -f --tail 100 <container_id>` to follow live standard output and error streams with timestamps for real-time production debugging.
Use `top`/`htop` for live process CPU/RAM tracking, `free -h` for memory metrics, `df -h` for disk space, `iostat` for disk I/O, and `lsof -i :<port>` to find processes holding network ports.
Use the Regex Cheat Sheet quick patterns, test flags (case-insensitive `i`, multiline `m`, global `g`), and verify edge cases with empty strings, Unicode characters, and extreme payload lengths.
`docker stop` sends `SIGTERM`, granting the container process a 10-second grace period for clean shutdown. `docker kill` sends `SIGKILL`, immediately terminating the container process kernel-level.
Identify the process ID with `sudo ss -tulpn | grep :<port>` or `lsof -ti :<port>`, and terminate it cleanly with `kill <PID>` (or `kill -9 <PID>` if unresponsive).
Running `EXPLAIN (ANALYZE, BUFFERS) SELECT ...` executes the query and prints the actual execution plan, highlighting slow sequential scans, hash joins, and disk sort spills.
Create a new branch from your current detached state (`git switch -c temp-branch`), merge it into your main branch, and delete the temporary branch.
Use pipes `|` and hyphens `-` for structured tables, `- [x]` for interactive checklists, and triple backticks with language tags (```python) for syntax-highlighted code blocks.
They provide instant visual reminders of standard library methods, Big-O algorithmic complexity matrices, language-specific array slice idioms, and database join conditions during technical prep.