3 min read

Frogs and Vim

by Daniel Nagy @danielnagydotme
🧬Written by a human
Young frog in a library working on a computer, digital art

This is a story about a prank I pulled on one of my classmates in CS.

I had a friend from class who liked to read books. One day, I asked them for some reading recommendations. They gave me a list, and on that list was a short story called The Celebrated Jumping Frog of Calaveras County. So I read it, and let's just say I'll never get my time back 😄.

In a subsequent class, we were given access to the university's Linux server. Everyone in the class received an email from the server administrator informing us that a user account had been created for us and that our password was our student PID. I was a little shocked when I read this because our PIDs were public domain. If you knew another student's PID, then you could log into their account. It wasn't very difficult to find a student's PID.

I had to capitalize on this oversight somehow. I thought it would be fun to log into another student's account and pull some kind of prank. But what could I do? I could change their password so they couldn't log in, but that seemed excessive. I didn't want to inconvenience them too much. After thinking for a bit, I came up with an idea. How funny would it be if every time my friend logged into their account, the terminal read The Celebrated Jumping Frog of Calaveras County?

This seemed like the perfect prank. It was bizarre enough that they would know they're being pranked, and, given the context, they would likely suspect that I was behind it. So I logged into my friend's account and copied the story to a file. I then edited their bash_profile to open the file immediately after logging in. But I didn't just simply cat the file to stdout. Instead, I opened the file using Vim.

The prank was successful. My friend had never used Vim before, so they were very confused. Getting locked in Vim is a rite of passage for any software engineer. I hope you enjoyed reading my story. I can't say that I would recommend reading The Celebrated Jumping Frog of Calaveras County.

Written by Daniel Nagy

Daniel is a software engineer and full-stack web developer. He studied computer science at Ohio University and has been doing web development and hybrid mobile app development since 2014.

If you liked this post, then please consider donating or becoming a sponsor. Your support will help me produce more content that gives back to the community.

Buy me a coffeeBecome a sponsor

Comments#

INFO

You will not receive notifications for new comments. If you are waiting for a reply, please check back periodically.

Markdown enabled