Skip to main content
Copyable Developer Reference Sheets

Developer Cheat Sheets Directory

Instant syntax lookups, command flags, production recipes, and keyboard shortcuts across modern programming languages, cloud platforms, and DevOps tools.

Search & Filter Developer Cheat Sheets

Showing 50 curated cheat sheets with verified copyable syntax & CLI recipes

50 Curated Sheets
Essential
Developer Tools

Git & GitHub CLI

Essential Git commands, branch operations, interactive rebasing, stashing, and commit history manipulation.

View 19+ Commands
Essential
Cloud & DevOps

Docker & Docker Compose

Production container lifecycle, multi-stage builds, Docker Compose orchestration, volume management, and system pruning.

View 19+ Commands
Production
Cloud & DevOps

Kubernetes kubectl CLI

Battle-tested kubectl commands, pod debugging, rollouts, namespace management, ingress, and cluster troubleshooting.

View 20+ Commands
Essential
Linux & CLI

Linux Shell & System Administration

Everyday Bash CLI commands, system diagnostics, permissions, networking sockets, processes, and disk management.

View 18+ Commands
Production
Cloud & DevOps

AWS CLI v2 & Cloud Services

Essential AWS command-line interface commands for S3, EC2, Lambda, Secrets Manager, CloudWatch, and STS security.

View 17+ Commands
Architecture
Cloud & DevOps

Terraform & OpenTofu HCL

Infrastructure as Code (IaC) workflows, state management, module inputs, planning, locking, and provider configurations.

View 15+ Commands
Production
Cloud & DevOps

Helm Kubernetes Package Manager

Helm 3 chart repositories, declarative values overrides, release lifecycles, template rendering, and rollback procedures.

View 16+ Commands
Essential
Cloud & DevOps

Nginx Web Server & Reverse Proxy

Production Nginx reverse proxy directives, SSL/TLS termination, rate limiting, gzip compression, and upstream load balancing.

View 14+ Commands
Enterprise
Cloud & DevOps

Ansible Playbooks & Automation

Agentless infrastructure automation, ad-hoc commands, inventory files, encrypted vaults, roles, handlers, and idempotent recipes.

View 16+ Commands
Essential
Developer Tools

GitHub Actions CI/CD Workflows

YAML workflow syntax, matrix builds, automated testing, artifact publishing, caching, and repository secrets injection.

View 15+ Commands
Essential
Databases

PostgreSQL psql & Administration

Production psql commands, EXPLAIN ANALYZE performance tuning, index creation, backups, and active lock diagnostics.

View 18+ Commands
Essential
Databases

Redis CLI & Data Structures

Redis command syntax, strings, hashes, sorted sets, pub/sub, expiration TTLs, clustering, and memory monitoring.

View 17+ Commands
Essential
Databases

SQL Relational Queries & Joins

Standard ANSI SQL queries, complex table joins, aggregate window functions, common table expressions (CTEs), and indexing.

View 17+ Commands
Production
Databases

MongoDB & Mongosh Queries

Document database operations, aggregation pipelines, update operators, compound indexes, and sharding fundamentals.

View 16+ Commands
Essential
Databases

SQLite & LiteCLI Commands

Lightweight embedded SQL commands, schema introspection, WAL mode performance tuning, and database dumping.

View 16+ Commands
Production
Databases

Elasticsearch & OpenSearch REST API

Index management, boolean search queries, match aggregations, cluster health, and mapping configurations.

View 16+ Commands
Advanced
Databases

ClickHouse SQL & Columnar Analytics

Real-time columnar database queries, MergeTree table engines, partitioning, data mutation, and analytical benchmarks.

View 15+ Commands
Enterprise
Backend & APIs

Apache Kafka CLI & Event Streaming

Topic administration, consumer groups, partition management, producer testing, offset resets, and cluster inspection.

View 16+ Commands
Verified Infrastructure & CLI Sandboxes

Live Cloud Sandboxes for Cheat Sheet Practice

Test Linux commands, Docker flags, and Kubernetes manifests on isolated high-performance cloud servers.

Sponsored Partners • AdSense Compliant

Hostinger

High-Speed Web & Cloud Hosting

Hosting Partner

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

PureVPN

Security & Global API Geo-Testing

Security Partner

Protect developer workstations on public Wi-Fi and verify localized APIs, CDNs, and web services across global high-speed servers.

  • High-Speed WireGuard Speeds
  • Global Server Locations
  • Zero-Log Certified Privacy
Partner OfferGet Security Deal

AppSumo

Lifetime Software & AI Tool Deals

Lifetime Software

Eliminate recurring monthly SaaS bills. Get lifetime access to top AI coding tools, SEO suites, and developer productivity apps.

  • Pay Once, Use Forever
  • Exclusive Partner Deals
  • Money-Back Guarantee

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.

Senior Technical FAQ Hub: Developer Cheat Sheets

Focused questions covering internals, runtime edge cases, security, and practical troubleshooting for Developer Cheat Sheets.

50 Engineering Q&As
1What developer cheat sheets are available on HelloAIHub?

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.

2How do HelloAIHub cheat sheets differ from full technology guides?

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.

3Are all code snippets and CLI commands on the cheat sheets tested and verified?

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+).

4Can I print or bookmark these cheat sheets for desktop reference?

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.

5Are the cheat sheets completely free to use for commercial and open-source projects?

Yes. All cheat sheets, regex patterns, shell aliases, and configuration snippets are 100% free and open-source for personal and commercial development.

6How are cheat sheet commands organized for fast visual scanning?

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.

7Can I search for specific flags and subcommands within each cheat sheet?

Yes. Each cheat sheet page includes a real-time instant search bar that filters commands and syntax patterns dynamically as you type.

8How frequently are new cheat sheets and commands added to the library?

Our technical editorial board regularly updates existing cheat sheets with modern flags and publishes new cheat sheets for emerging frameworks and cloud tools.

9Do the cheat sheets support dark mode and light mode?

Yes. The entire platform includes a toggleable dark mode designed with high-contrast color palettes for comfortable viewing during long coding sessions.

10Can I copy code snippets with a single click?

Yes. Every code snippet and terminal command features a one-click copy button with instant visual confirmation.

11What modern Git commands replace legacy checkout workflows?

Modern Git introduces `git switch <branch>` for branch navigation and `git restore <file>` for discarding uncommitted changes, replacing the overloaded legacy `git checkout` command.

12How does `docker compose` (v2) improve container management performance?

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.

13What Linux command pipelines provide high-performance text processing on gigabyte log files?

Combining `ripgrep` (`rg`), `awk`, `sed`, and `sort --parallel` processes multi-gigabyte log files in seconds by leveraging SIMD vectorization and multi-threaded CPU execution.

14How do non-capturing groups `(?:...)` optimize Regular Expression execution speed?

Non-capturing groups group pattern components without allocating memory to store submatch capture buffers, reducing regex engine memory overhead during large document scans.

15What SQL query syntax utilizes indexes effectively and avoids full table 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.

16How do Python List Comprehensions outperform traditional for-loops in runtime benchmarks?

List comprehensions execute optimized C-level iteration loops within the CPython interpreter bytecode (`BUILD_LIST` and `LIST_APPEND`), bypassing Python frame evaluation overhead.

17What Bash parameter expansions eliminate the need for slow external subshells (`$(...)`)?

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.

18How does `git sparse-checkout` accelerate cloning massive monorepos?

`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.

19What Docker prune commands recover gigabytes of dangling build cache?

Run `docker system prune -a --volumes` to safely purge all stopped containers, unused networks, dangling images, and buildx build cache in a single command.

20How does `xargs -P` execute shell commands in parallel across multiple CPU cores?

`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.

21What is the difference between `git merge` and `git rebase`?

`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.

22How do Docker Bridge, Host, and Overlay networks coordinate multi-container traffic?

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.

23How do Git Interactive Rebases (`git rebase -i HEAD~N`) clean up feature branch history?

Interactive rebase allows developers to squash fixup commits, reword commit messages, reorder commits, or drop accidental changes before opening a pull request.

24What is the difference between `docker run -d` and `docker run -it`?

`-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.

25How does `git stash` with named branches save in-progress experimental work?

`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.

26How do Docker named volumes persist database data across container restarts and upgrades?

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.

27What is the role of `git cherry-pick` in backporting bugfixes across branches?

`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.

28How do Linux background job controls (`&`, `bg`, `fg`, `jobs`, `nohup`) manage processes?

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.

29What is the difference between SQL `INNER JOIN`, `LEFT JOIN`, `RIGHT JOIN`, and `FULL OUTER JOIN`?

`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.

30How does `git bisect` use binary search to locate regression bugs in Git history?

`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.

31How does `chmod` numerical notation calculate Linux file permissions?

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.

32Why should you enforce non-root `USER` in production Dockerfiles?

Running as non-root (`USER appuser`) prevents container breakout attacks from inheriting root privileges on the underlying host operating system kernel.

33How do you prevent Catastrophic Backtracking in Regular Expressions (ReDoS)?

Avoid nested quantifiers on overlapping character classes (like `(a+)+$`). Use atomic grouping, possessive quantifiers (`++`), or explicit anchor boundaries to prevent exponential backtracking.

34How do you securely configure SSH keys and verify Git commit signatures with GPG?

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.

35What is the risk of `git push --force` and why should you use `--force-with-lease`?

`--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.

36How do you sanitize environment variables in Bash scripts to prevent Command Injection?

Always double-quote variable expansions (`"$USER_INPUT"`), use `printf '%q'` for shell-escaping, and validate inputs against strict regular expression whitelists.

37What SQL injection prevention syntax is demonstrated in the SQL Cheat Sheet?

Always use parameterized query placeholders (`$1`, `?`) in ORMs and drivers; never concatenate raw string inputs directly into SQL `EXECUTE` or `query()` calls.

38How do Docker `.dockerignore` files prevent secret leaks into image layers?

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.

39How do Lookahead and Lookbehind assertions work in advanced Regex?

Positive lookahead `(?=...)` and negative lookahead `(?!...)` assert conditions ahead without consuming characters; positive lookbehind `(?<=...)` and negative lookbehind `(?<!...)` assert conditions behind.

40What Linux firewall commands (`ufw`, `iptables`) restrict unauthorized port access?

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.

41How do you recover accidentally deleted Git commits or branches using `git reflog`?

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.

42How do you inspect live Docker container logs and tail real-time output?

Run `docker logs -f --tail 100 <container_id>` to follow live standard output and error streams with timestamps for real-time production debugging.

43What Linux diagnostics commands inspect CPU, memory, and disk I/O bottlenecks?

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.

44How do you test and validate complex Regular Expressions before production deployment?

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.

45What is the difference between `docker stop` and `docker kill`?

`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.

46How do you find and kill a runaway process listening on a specific TCP port in Linux?

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).

47What SQL `EXPLAIN ANALYZE` commands reveal query execution bottlenecks?

Running `EXPLAIN (ANALYZE, BUFFERS) SELECT ...` executes the query and prints the actual execution plan, highlighting slow sequential scans, hash joins, and disk sort spills.

48How do you fix Git detached HEAD states?

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.

49What Markdown syntax creates clean tables, task lists, and syntax-highlighted code blocks?

Use pipes `|` and hyphens `-` for structured tables, `- [x]` for interactive checklists, and triple backticks with language tags (```python) for syntax-highlighted code blocks.

50How do HelloAIHub cheat sheets help accelerate live coding interviews?

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.