Comment

Comment by nicbou

Great post idea!

"python3 -m http.server" is really useful when building simple JavaScript pages, or when you need a simple static file server for testing.

"ss -p" is great, but if you just want to see what's hogging your bandwidth, iftop and nethogs are much better.

My favourite one-liner is "open .", to open the current directory in Finder. The open command can also open URLs and other files.

I also have an alias for "osascript -e 'display notification "'"$1"'"'", which will display the text you choose in a MacOS notification. It's useful when you need to be notified at the end of a long-running task. "printf '\a'" is also useful if you need the terminal to "ding".

parent nicbou 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton