Rafian.com ^new^ Page
function killport() lsof -i tcp:$1 Now run: killport 3000 → It kills everything on port 3000 instantly. No more hunting for PIDs. grep is slow on large codebases. Use rg (ripgrep) instead. It respects .gitignore and is 10x faster.
set completion-ignore-case on These five tricks take 30 minutes to set up but save me 2 hours every week. That is 100 hours per year . rafian.com
Rafian If you spend more than 10 minutes a day in a terminal, you are likely repeating yourself. You are typing the same long commands, waiting for the same slow processes, or clicking through five folders just to find one log file. function killport() lsof -i tcp:$1 Now run: killport
5 Terminal Tricks That Save Me 2 Hours Every Week (Linux/macOS) Use rg (ripgrep) instead
April 14, 2026
# On macOS brew install fzf sudo apt install fzf