
What headless mode (claude -p) is: the agent works with no window and no you — in a script, cron or CI. Why it quietly skips actions and how to grant it rights.

What a shebang (#!) at the top of a script is, in plain words: who reads that line, why /usr/bin/env exists, and where the mysterious python3\r comes from.

Why a bash script breaks on files with spaces: quotes around variables, looping over ls, $* versus $@, and the empty variable that wiped a disk.

Permission denied when running a script: four real causes and how to check each one. Why sudo doesn't help, what Git breaks, and how to fix the ^M error.

async or defer: the difference for the script tag and which to pick. A comparison on five criteria, plus the trap: async scripts run in a random order.