nivethan ariyaratnam
Senior Software Engineer @ Allion Technologies, writing daily events, interesting finding, thoughts here
2022-07-01
A lightning-round of command-line nuggets to level-up your dev workflow.
history | grep + fzf = instant recallFish out that elusive command you ran last Tuesday:
history | grep docker | fzf
Hit Enter and it pastes right back to your prompt like magic.
Combine git log with -S (search diff) to find when a string first appeared:
git log -S"resizeObserver" --oneline -- src/components/Layout.tsx
Mac & Linux already ship with python3:
cat response.json | python3 -m json.tool | less
Need to expose localhost:3000? Use SSH—no ngrok token needed.
ssh -R 80:localhost:3000 ssh.localhost.run
Now share the generated URL on Slack and watch eyebrows rise.
time + subshellHow long does your linter actually take?
time (npm run lint > /dev/null)
💡 Pro-tip: wrap this in a
pre-pushhook so slow commands get caught early.