Code Snippets
Why printf Beats echo in Linux Scripts
- Mohammad Abu Mattar
- Shell scripting
- Devops
- Linux
- Published: 02 Jan, 2026
Scripting Tip You know that feeling when a script works perfectly on your machine but fails miserably somewhere else? That's probably because you're using echo for output. Let me show you why pri
Essential Bash Variables for Every Script
- Mohammad Abu Mattar
- Shell scripting
- Devops
- Published: 26 Dec, 2025
Overview Quick Tip You know what's worse than writing scripts? Writing scripts that break every time you move them to a different machine. Let's fix that with some built-in Bash variables tha
Per-App Shell History for Zsh
- Mohammad Abu Mattar
- Shell scripting
- Productivity
- Published: 18 Dec, 2025
Terminal Chaos? Organize Your Shell History! 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 by
Per-App Shell History for Bash
- Mohammad Abu Mattar
- Shell scripting
- Productivity
- Published: 18 Dec, 2025
Terminal Chaos? Organize Your Bash History! Ever jumped between iTerm2, Ghostty, and VS Code's terminal only to have your command history get all mixed up? This Bash snippet keeps things clean by
Optimizing your python code with __slots__?
- Mohammad Abu Mattar
- Python
- Productivity
- Published: 16 Jul, 2025
Memory Optimization with slots Understanding the Problem Dev Tip: Optimizing Data Models in Big Data Workflows with slots In big data and MLOps workflows, you often work with
List S3 Buckets
- Mohammad Abu Mattar
- Aws
- Python
- Devops
- Published: 25 Jun, 2025
Overview Multi-Profile S3 Management Multi-Profile S3 Safari! Ever juggled multiple AWS accounts and needed a quick S3 bucket inventory across all of them? This Python script is your guid
AWS Secrets Manager
- Mohammad Abu Mattar
- Aws
- Devops
- Published: 18 Jun, 2025
Need to load secrets in your Node.js app without exposing them? Here's how. If you're still storing API keys or database credentials in .env files or hardcoding them into your codebase, it's ti
Check S3 Bucket Existence
- Mohammad Abu Mattar
- Aws
- Shell scripting
- Devops
- Published: 11 Jun, 2025
'Cloud' 'Automation' isCodeSnippet: true draft: falseQuick Tip Don’t let your deployment blow up because of a missing S3 bucket. This Bash script lets you check if a bucket exists