Code Snippets
Working code you can lift straight into a project: shell, Python, TypeScript, Terraform. Each snippet says what it does and where it bites.

Per-App Shell History for Zsh
- Shell scripting
- Productivity
- 18 Dec 2025
- 02 Mins read
Organize your shell history per terminal app. Ever jumped between iTerm2, Ghostty, and VS Code's terminal only to have your command history get all mixed up? This Zsh snippet keeps things clean b

Optimizing your python code with __slots__?
- Python
- Productivity
- 16 Jul 2025
- 04 Mins read
Memory optimization with slots Understanding the problem Optimizing data models in big data workflows with slots In big data and MLOps workflows, you often work with massive

AWS Secrets Manager
Loading secrets in a Node.js app without exposing them If you're still storing API keys or database credentials in .env files or hardcoding them into your codebase, it's time for a better appro

Check S3 Bucket Existence
- Aws
- Shell scripting
- 11 Jun 2025
- 02 Mins read
Quick Tip Don't let your deployment blow up because of a missing S3 bucket. This Bash script lets you check if a bucket exists before anything fails. The Problem Missing bucket failure
