A collection of practical, safe and time-saving tech hacks for everyday dev and power-user workflows.
Use these to speed up development, troubleshoot faster and work smarter.
If you need to preview static HTML/CSS fast:
- Python 3:
python -m http.server 8000 - Node (http-server):
npx http-server -p 8000Then openhttp://localhost:8000.
Reuse previous terminal commands quickly:
- Bash/zsh: press
Ctrl + Rand start typing to reverse-search history.
From any folder:
code . — opens current folder in VS Code (install code CLI from VS Code if needed).
Quickly archive files with a password (zip must support encryption on your system):
zip -e secret.zip file1 file2
To keep a list of open tabs:
- Bookmark all tabs into a folder, or use
Right click tab → Bookmark all tabs.
- In Chrome:
Ctrl+Shift+I→Ctrl+Shift+P→ typeCapture full size screenshot.
- ripgrep (rg):
rg "search_term" --hidden— super fast search in code repositories. - On Windows, use
PowerShell:Select-String -Path * -Pattern "search_term" -Recurse
Add TODOs with consistent tags and search them:
- Example:
// TODO: fix edge case - Then search
TODO:across repo to generate quick task list.
Hide whitespace-only changes:
git diff -w or git show -w <commit>.
Copy output directly to clipboard:
- macOS:
some_command | pbcopy - Linux (with xclip):
some_command | xclip -selection clipboard - Windows PowerShell:
some_command | Set-Clipboard
Using ImageMagick:
mogrify -resize 1024x1024\> *.jpg — resizes images keeping aspect ratio, only if larger.
Ping and trace route:
ping example.comtraceroute example.com(ortracerton Windows)
✨ Use responsibly: these hacks are meant for productivity and harmless troubleshooting. Avoid using them in ways that violate rules, privacy, or security policies.