Re:Boyfriend-alert – A light based alert system
by TonyTrapp on Monday January 31, 2022 @08:28AM
(#30147639)
It's essentially the Hacker News Hug of Deaf.
Re:Boyfriend-alert – A light based alert system
by CraneWorm on Monday January 31, 2022 @06:35AM
(#30146930)
neat! here's mine:
while true; do curl -q --http0.9 http://susam.net:8000/; sleep $(( $RANDOM % 10 )); done
Re:Boyfriend-alert – A light based alert system
by ddalex on Monday January 31, 2022 @06:39AM
(#30146957)
> This site can’t be reached - REDACTED refused to connect.
Am disappointed and my day is ruined
Re:Boyfriend-alert – A light based alert system
by Wojakmeme on Monday January 31, 2022 @07:40AM
(#30147294)
In the written command you can see that nothing serves a HTTP server, so the peep works even though you dont get a response.
Re:Boyfriend-alert – A light based alert system
by ddalex on Monday January 31, 2022 @10:42AM
(#30149185)
The error is that it doesn't connect, not that it doesn't serve an HTTP response.
But now it connects, correctly.
Re:Boyfriend-alert – A light based alert system
by Villodre on Monday January 31, 2022 @06:16AM
(#30146801)
I bet you're having a fun morning with the beeps :-)
Re:Boyfriend-alert – A light based alert system
by susam on Monday January 31, 2022 @07:04AM
(#30147068)
Indeed I am! HN readers are a fun group. I am receiving beeps almost every second, so I updated my previous shell script to keep a record of the connections netcat receives. Also, converted the beeping loop to a background job, so that the outer netcat loop does not have to wait for the inner beeping loop to complete before handling the next connection. Notice the '&' before the last 'done' in the improved alerting service below:
while true; do (echo ok | nc -q 1 -vlp 8000 2>&1; echo; date -u) | tee -a beeper.log; for i in 1 2 3 4; do printf '\a'; sleep 1; done & done
Here is a log of the timestamps of the connections received so far: https://gist.github.com/susam/159c7d92659b3185eb0b0d683998a3...
Re:Boyfriend-alert – A light based alert system
by LilBytes on Monday January 31, 2022 @07:34AM
(#30147259)
DDoSaS.
Distributed denial of service and sleep. Nice work.
Re:Boyfriend-alert – A light based alert system
by cl3misch on Monday January 31, 2022 @08:39AM
(#30147722)
Now I know you can programmatically push to Github gists, thanks!
Re:Boyfriend-alert – A light based alert system
by i2shar on Monday January 31, 2022 @07:04AM
(#30147065)
On macOS you can replace printf '\a' with something nicer like 'say Lunch time!', or accept a query param and 'say $msg'
while true; do echo Coming! | nc -l 8000; for i in 1 2 3 4; do say "Lunch time!"; sleep 1; done; done
If you are on the client end of the equation and have ssh access to their mac: ssh user@host say "get your ** here right now"
Re:Boyfriend-alert – A light based alert system
by samatman on Monday January 31, 2022 @09:28AM
(#30148218)
Almost anything is less nice than BEL for me, since I've had terminals set to flash-on-BEL for decades.
Re:Boyfriend-alert – A light based alert system
by nirse on Monday January 31, 2022 @08:52AM
(#30147841)
Thank you, sending you 4 beeps and seeing that 'ok' was the most web-based fun I had in a very long while!
Re:Boyfriend-alert – A light based alert system
by wwwasdfthrone on Monday January 31, 2022 @06:47AM
(#30146991)
This sound like a great way to prank someone’s laptop you have access to!
If your port 8000 is already occupied, I recommend port 41327 as an alternative for this alerting service. After all, 41327 reads "ALERT" in leetspeak.
By the way, visit http://susam.net:8000/ right now to send me some beeps! :)