this post was submitted on 16 Feb 2024
3 points (100.0% liked)

Programmer Humor

32355 readers
1385 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 0 points 8 months ago (1 children)

Happened to me in work once... I was connected via SSH to one of our test machines, so I could test connection disruption handling on a product we had installed.

I had a script that added iptables rules to block all ports for 30 seconds then unblock them. Of course I didn't add an exception for port 22, and I didn't run it with nohup, so when I ran the script it blocked the ports, which locked me out of SSH access, and the script stopped running when the SSH session ended so never unblocked the ports. I just sat there in awe of my stupidity.

[–] [email protected] 0 points 8 months ago (1 children)

We've all experienced the walk of shame to the server room to hook up a monitor keyboard.

[–] [email protected] 1 points 8 months ago

Ah, if only it was a server room and not a customer 3 hours drive away. And he'd closed and gone home for the night.

Fortunately it just needed a reboot, and I was able to talk him through that in the morning.