
Bash Script Locking: Prevent Concurrent Runs with a PID File
- Bash
- Automation
- 18 Aug 2026
- 04 Mins read
Quick Tip Wrap any script that must not run twice at once in a PID-file lock, and a second copy simply exits instead of corrupting your data. The Problem The Problem Cron does not c

Bash Retry Function: Automatically Retry Failing Commands with Exponential Backoff
- Devops
- Shell scripting
- 20 Jul 2026
- 05 Mins read
Quick Tip Wrap any flaky command in one reusable retry function and stop re-running red pipelines by hand. The Problem The Problem Some commands fail for reasons that have nothing to

AWS EC2 Instance Management with Boto3: Start, Stop, and Query Instances
If you've ever spent 20 minutes clicking through the AWS Console just to stop a handful of dev instances, you already know the pain. It's tedious, it doesn't scale, and one wrong click can ruin your a