Short answers you can practise
Each guide answers one question in a few minutes of reading, then points to the lab where you can do it on a real machine.
All guides
- 01Bash set -euo pipefail: what each flag does and where it bitesMake a Bash script stop on the first failure with set -euo pipefail, understand what -e does not catch, and add a trap that says where it stopped.
- 02"Could not resolve host": debugging DNS on LinuxFind out why a Linux machine cannot resolve a name, step by step through /etc/hosts, resolv.conf and the DNS server, with getent, dig and resolvectl.
- 03Smaller Docker images with a multi-stage buildBuild in one stage and ship only the result in another, so the image leaves out compilers and caches. With examples for Go and Node and how to check the size.
- 04Git rebase vs merge, and when to use eachWhat git merge and git rebase each do to your history, the one rule that keeps rebase safe, and how to get out of a rebase that went wrong.
- 05How to undo the last Git commit (and which way to choose)Undo the last Git commit with reset --soft, reset --hard, revert or commit --amend, choose by whether you pushed, and get a lost commit back with reflog.
- 06How to roll back a Kubernetes deploymentWatch a rollout, undo a bad one with kubectl rollout undo, go back to a chosen revision, and set the deployment so a broken version never takes all the traffic.
- 07Linux file permissions and chmod, in plain wordsRead rwxr-x--- at a glance, change permissions with chmod in numbers or letters, and fix the classic "Permission denied" on a script or a shared folder.
- 08Why is my PostgreSQL query slow? Read EXPLAIN, then add an indexUse EXPLAIN ANALYZE to see whether PostgreSQL reads the whole table, add the right index, check the plan changes, and know when an index does not help.
- 09How to roll back a transaction in PostgreSQLUndo a change in PostgreSQL with BEGIN and ROLLBACK, keep part of the work with SAVEPOINT, and see what happens to a transaction after an error.
- 10SQL JOIN and GROUP BY, explained with one real questionAnswer "how many orders did each store take?" with JOIN and GROUP BY, and learn why a LEFT JOIN, HAVING and count(column) change the answer.
Cheat sheets
- 01Blue team log forensics cheat sheet
- 02SQL and PostgreSQL cheat sheet
- 03Kubernetes and kubectl cheat sheet
- 04Linux fundamentals cheat sheet
- 05DevOps cheat sheet — Nginx, systemd, cron and Git hooks
- 06Networking troubleshooting cheat sheet
- 07Docker cheat sheet
- 08Bash scripting cheat sheet
- 09Git cheat sheet
- 10Web application security cheat sheet