26/07/2026
Ep 36 ā Scope: The LEGB Rule ā "Why didn't my variable change?!" š¤ 90% of those bugs are SCOPE. Python looks up names in an exact order ā LāEāGāB ā and once you know it, UnboundLocalError never surprises you again. Save this card š you WILL need it.
26/07/2026
not 0 = ...? Truthiness separates juniors from seniors š„ Drop your answer + your years of Python experience below!
25/07/2026
š EP 43 ā Read-Only Containers
š The simplest container hardening trick almost nobody uses: make the filesystem read-only.
If an attacker can't write files, they can't drop a payload, a webshell, or a crypto-miner. Game over for them. š”ļø
docker run --read-only myapp
App needs to write to /tmp? Give it a writable in-memory tmpfs and nothing else:
--tmpfs /tmp --tmpfs /run āļø
š„ Stack it: read-only + non-root + cap-drop = a container so locked down that even a code-execution bug finds almost nothing to grab. Defense in depth, three flags.
š¬ Which of these 3 are you already doing? š
š Save the fortress recipe.
25/07/2026
Day 33 ā Redshift
š Day 33/100: Querying billions of rows for analytics? RDS will cry. Redshift won't.
Columnar storage + massively parallel processing = complex reports in seconds. š° But for occasional S3 queries, Athena is cheaper ā know the difference.
š Save the "warehouse vs app DB" rule.
25/07/2026
Ep 35 ā Unpacking Magic Swap two variables with ZERO temp variables šŖ Plus: split lists with *rest and merge dicts in one line. The syntax tricks that make seniors' code look like magic. Which one did you not know? Comment the number!
25/07/2026
šØ SNEAKY ONE šØ Is (1) a tuple or not? 90% answer too fast and regret it. Take your time... then comment!
24/07/2026
š EP 42 ā Drop Capabilities ā
š» Your container ships with ~14 Linux "superpowers" (capabilities) by default. Your app probably uses zero of them. Every unused one is a free gift to an attacker. š
The senior move: drop everything, add back only what's essential.
--cap-drop ALL --cap-add NET_BIND_SERVICE
Layer on:
š« --security-opt no-new-privileges (block privilege escalation)
š§± --security-opt seccomp=profile.json (restrict syscalls)
This is least-privilege for containers ā and it blocks whole classes of exploits for free. š
š¬ Did you know containers had capabilities at all? š
š Save this hardening combo.