What:
A collection of small utility scripts that i use in my daily workflow — video compression, Git auto-commits, media cleanup, and other small tools that saves me some time.
Why:
I kept rewriting the same scripts on different machines, got tired of digging through backups, and finally decided to publish everything in one place. If these tools help someone else avoid a few repetitive tasks — even better.
A curated set of pragmatic scripts for everyday tasks: compression, syncing, cleanup, and small workflow automations.
A lightweight wrapper around ffmpeg to compress .mp4 files with reasonable defaults and adjustable quality settings.
Features:
- Scans a directory for .mp4 files (case-insensitive)
- Skips files already ending with "_compressed.mp4"
- Compresses using H.264 (libx264) with CRF=23 (good quality-size balance)
- Preserves original files, appends "_compressed" to output
- Handles spaces, parentheses, and weird filenames
- Measures total execution time
NOTE This scripts require POSIX compliant shells. For example bash and zsh, but not fish. Alternatively, you can enter bash and then run the desired <script.sh>.
Clone the repository:
git clone https://github.com/arazyan/daily-scripts.git
cd daily-scriptsMake the scripts executable:
chmod +x scripts/*Optionally add them to your PATH:
echo "export PATH=\"\$PATH:$(pwd)/scripts\"" >> ~/.bashrc # or ~/.zshrc or elseSee the LICENSE file for license rights and limitations (MIT).