Fun Bash Scripts – Pranks & Useful Utilities!
Ninjas aren't always serious, sometimes they have fun too! 😈
Today, we’re diving into hilarious prank scripts 🤡 and super useful utilities 🛠 that make your terminal experience awesome!
Prank Scripts – Messing with Fellow Ninjas
1️⃣ The Keyboard Freezer (Evil Mode: ON 😈)
Want to disable someone’s keyboard without them knowing? Try this:
bash
#!/bin/bash
while true; do xdotool key Return; done
🔥 Escape? Press Ctrl + C
to stop. (If they can. 😆)
2️⃣ The Random Terminal Sounds (Because Why Not? 🔊)
Let’s make the terminal scream randomly.
bash
#!/bin/bash
while true; do
sleep $((RANDOM % 10 + 5))
echo -e "\a" # Sends an alert (beep) sound
done
Perfect for office fun. Just hide it in the background! 😆
3️⃣ Random Password Generator (Ninja Secure Mode)
bash
#!/bin/bash
echo "Your new ninja password: $(openssl rand -base64 12)"
💡 Use this to generate super-secure passwords!
4️⃣ The Lazy Git Commit Script (No More Thinking of Messages)
bash
#!/bin/bash
messages=("Fixed stuff" "Improved things" "Code is now magic" "Works on my machine" "Added a feature")
git add .
git commit -m "${messages[$RANDOM % ${#messages[@]}]}"
git push
🚀 Now your commits are always legendary.
The Ultimate Ninja Challenges
✅ Create a script that opens 50 tabs in the browser when run 😈
✅ Make a fake hacking screen that prints random sudo
errors
✅ Write a backup script that saves all .txt
files every hour