CLI commands, scripts, and one-liners for developers
Squash, reorder, or edit the last N commits interactively
git rebase -i HEAD~{{n}}Start containers with forced rebuild and remove orphans
docker compose up -d --build --remove-orphansFix all vulnerabilities including breaking changes
npm audit fix --forceCreate a compressed backup of a PostgreSQL database
pg_dump -h {{host}} -U {{user}} -d {{database}} -Fc > backup_$(date +%Y%m%d_%H%M%S).dumpFind and kill any process running on a specific port
lsof -ti:{{port}} | xargs kill -9Stash changes with a descriptive message for later retrieval
git stash push -m "{{message}}"Find the 10 largest files in current directory recursively
find . -type f -exec du -h {} + | sort -rh | head -10Deploy to Vercel production with environment file
vercel --prod --env-file .env.productionRun Node.js with increased heap size for memory-intensive tasks
NODE_OPTIONS="--max-old-space-size=8192" npm run {{script}}Delete all local branches that have been merged to main
git branch --merged main | grep -v "main" | xargs -n 1 git branch -d