Get the latest tech news

Hacker News Hug of Deaf


"It's essentially the Hacker News Hug of Deaf." – @TonyTrapp About three years ago, I set up a tiny netcat loop on one of my Debian servers to accept arbitrary connections from the Hacker News (HN) community. The loop ran for 24 hours and did exactly three things whenever a client connected: - Send a simple okmessage to the client.

The nc command closes the connection immediately after sending the ok message and runs an inner for loop in a background shell that asynchronously prints the bell character to the terminal four times. Meanwhile, the outer while command loops back quickly to run a new nc process, thus making this one-liner script instantly ready to accept the next incoming connection. Now, 4761 isn't a huge number in the grand scheme of things, but it was still pretty cool to see people notice an obscure comment buried in a regular HN thread, act on it, and make my terminal beep thousands of time.

Get the Android app

Or read this on Hacker News