Skip to content

Best command to prank your friends at 42: Never leave your computer unlocked again. ๐Ÿ˜ˆ

Notifications You must be signed in to change notification settings

godetremy/42-trolls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

42 Trolls

Never leave your computer unlocked again. ๐Ÿ˜ˆ

Welcome to 42 Trolls! Hereโ€™s the ultimate guide to prank your friends at 42 School.

Weโ€™ve organized the pranks into four categories:

  • ๐ŸŸข Slightly Annoying : Simple pranks that are easy to undo (like modifying .zshrc)
  • ๐ŸŸก Moderately Annoying : A step up! These pranks are a bit more troublesome but can be undone with the right know-how ๐Ÿ˜˜
  • ๐ŸŸ  Very Annoying : Ready for more? These pranks involve taking control of hardware featuresโ€ฆ like sound, graphics, and storage!
  • ๐Ÿ”ด Ultra Annoying : The final countdownโ€ฆ Ultra annoying pranks, like session scripts or resets.

๐ŸŸข Slightly Annoying

Simple pranks that are easy to undo (like modifying .zshrc)

๐Ÿ”’ Lock your friend's screen

Lock the screen of the person youโ€™re pranking.

ft_lock

๐ŸŽฌ Lowcost Matrix

Always wanted to be an actor in The Matrix? Create a Matrix effect, but without the budget to hire developers.

echo 'cat /dev/urandom' >> ~/.zshrc
๐Ÿงน How to remove ?

Use this command :

sed -i '' "s/cat \/dev\/urandom//g" ~/.zshrc

Or remove the line at end of the .zshrc file.

๐Ÿฑ Tac or Cat ?

Replace the cat command with rev, which prints the file in reverse.

echo 'alias cat="rev"' >> ~/.zshrc
๐Ÿงน How to remove ?

Use this command :

sed -i '' "s/alias cat=\"rev\"//g" ~/.zshrc

Or remove the line at end of the .zshrc file.

๐Ÿ“– Where is the fucking manual ?

Replace the man command with a message saying No manual entry for {command}.

echo 'man() { echo "No manual entry for $1"; }' >> ~/.zshrc
๐Ÿงน How to remove ?

Use this command :

sed -i '' "s/man() { echo \"No manual entry for $1\"; }//g" ~/.zshrc

Or remove the line at end of the .zshrc file.

๐Ÿฅธ Hieroglyph Title Bar

Replace the font in the title bar of some apps with a symbol font, but with a really big size...

gsettings set org.gnome.desktop.wm.preferences titlebar-uses-system-font false
gsettings set org.gnome.desktop.wm.preferences titlebar-font 'wasy10 256'
๐Ÿงน How to remove ?

Use this command :

gsettings set org.gnome.desktop.wm.preferences titlebar-uses-system-font true

๐Ÿ–ฑ๏ธ Cursor Finder

This command make the cursor at size of 256px.

Note

Some cursor are not avaible at a size of 256px. In this case, Gnome will take the larger.

gsettings set org.gnome.desktop.interface cursor-size 256
๐Ÿงน How to remove ?

Use this command :

gsettings set org.gnome.desktop.interface cursor-size 24

โŒ XXX ?

Update the buttons of the title bar with 3 close buttons

gsettings set org.gnome.desktop.wm.preferences button-layout ':close,close,close'
๐Ÿงน How to remove ?

Use this command :

gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'

๐Ÿ™… Useless window

Remove all the buttons of the title bar

gsettings set org.gnome.desktop.wm.preferences button-layout ':'
๐Ÿงน How to remove ?

Use this command :

gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'

๐ŸŸก Moderately Annoying

A bit more annoying, but still easy to remove.

๐Ÿ“บ AdSh - Ads in your shell

Tired of an ad-free terminal? Now you can add ads to pop up when you type commands in your terminal.

curl https://raw.githubusercontent.com/godetremy/42-trolls/refs/heads/main/adsh/install.sh | bash
๐Ÿงน How to remove ?

Use this command :

curl https://raw.githubusercontent.com/godetremy/42-trolls/refs/heads/main/adsh/uninstall.sh | bash

Or remove the line at end of the .zshrc file, then delete the folder .adsh in your home.

๐Ÿช„ Want to contribute ?

You can add your own ads in the adsh/video folder, but remember:

  • Max video size: 2MB: This will make downloads faster, which is crucial for pranking.
  • No 4K videos: High resolution can cause lag in mpv, plus, itโ€™s unnecessary โ€” terminal windows wonโ€™t display 1920x1080 resolution anyway.

Once youโ€™ve added your video, donโ€™t forget to update the video variable in adsh/install.sh and adsh/adsh.sh

๐ŸŽ FallingKey

A feeling like Isac Newton, when you type letter are falling from the top of your screen.

curl https://raw.githubusercontent.com/godetremy/42-trolls/refs/heads/main/fallingkey/run.sh | bash
๐Ÿงน How to remove ?

The easy way is to logout, but if you don't want to do this you can find ft_keyboard in the sytem monitor.

๐ŸŸ  Very Annoying

Time to take control of hardware capabilitiesโ€ฆ like sound, graphics, and storage.

๐Ÿ•บ Rickrolled

Set the volume to 75%, and play Never Gonna Give You Up by Rick Astley in VLC fullscreen.

pactl set-sink-mute @DEFAULT_SINK@ false && pactl set-sink-volume @DEFAULT_SINK@ 75% && cvlc https://dn720407.ca.archive.org/0/items/rick-roll/Rick%20Roll.ia.mp4 -f --no-video-title-show --mouse-hide-timeout 0

๐Ÿ”‘ NoLock

Replace the lock button. Now when you lock, Mario say "Non".

curl https://raw.githubusercontent.com/godetremy/42-trolls/refs/heads/main/nolock/install.sh | bash
๐Ÿงน How to remove ?

Use this command :

curl https://raw.githubusercontent.com/godetremy/42-trolls/refs/heads/main/nolock/uninstall.sh | bash

๐ŸŽฒ Random Mouse

The default configuration of mouse is so boring... Why not randomize all the button of your mouse every 2s ?

while true; do
	xmodmap -e "$(echo "pointer = $(shuf -e 1 2 3 | paste -sd " ")")"
	sleep 2
done & disown
๐Ÿงน How to remove ?

The simplest method is to disconnect, but we wish you good luck finding the right button... ๐Ÿ˜˜

Then you can use this command to reset the original mapping.

	xmodmap -e "pointer = 1 2 3"

๐Ÿ”ด Ultra Annoying

The final (countdown?) โ€” ultra annoying pranks, like session scripts or resets. Only use these if your friend is really your enemy. ๐Ÿ˜ˆ

๐Ÿ’พ 420T

Because 5GB is too small, experience the 420T session.

echo '/usr/bin/zenity --error --title="bocal" --text="Your home is full! (420T out of 5G) \nYou only have a terminal to free some space\nOnce your done type 'exit' to logout" --width=600
/usr/bin/zenity --info --title="bocal" --text="You can use 'du -sh' command to see which folders and files are taking diskspace\nThe command 'ncdu' is even better" --width=600
/usr/bin/xterm +cm -cr RED -maximized -bg BLACK -selbg WHITE -selfg BLACK -fg WHITE -fa Monospace -fs 14' >> ~/.profile

๐Ÿ—‘๏ธ Files? What files?

Delete all files in the session โ€” this will reset the session completely.

Caution

This action cannot be undone. This is more than just a troll. All files in the session will be deleted. Make sure you have your friendโ€™s permission before using this.

touch ~/.reset

About

Best command to prank your friends at 42: Never leave your computer unlocked again. ๐Ÿ˜ˆ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published