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

31 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 ?

Remove the line 'alias cat /dev/urandom' from your ~/.zshrc file to stop the Matrix effect. Or use this command:

sed -i '/cat /dev/urandom/d' ~/.zshrc

๐Ÿฑ Tac or Cat ?

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

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

Remove the line 'alias cat="rev"' from your ~/.zshrc file to restore the original cat command. Or use this command:

sed -i '/alias cat="rev"/d' ~/.zshrc

๐Ÿ“– 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 ?

Remove the line 'alias man="echo No manual entry for {command}"' from your ~/.zshrc file to restore the original man command. Or use this command:

sed -i '/alias man="echo No manual entry for {command}"/d' ~/.zshrc

๐Ÿฅธ 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 ?

Restore the title bar font to the system default with 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 step up! These pranks are a bit more troublesome but can be undone with the right know-how ๐Ÿ˜˜

๐Ÿ“บ 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 ?

Remove the line at end of the .zshrc file, then delete the folder .adsh in your home, or use this command :

curl https://raw.githubusercontent.com/godetremy/42-trolls/refs/heads/main/adsh/uninstall.sh | bash
๐Ÿช„ 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.

pkill -f ft_keyboard

๐ŸŸ  Very Annoying

Ready for more? These pranks involve taking control of hardware featuresโ€ฆ 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 "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"

๐Ÿ˜‡ Be Polite

Your parents didnโ€™t teach you manners? Neither did the terminal! From now on, you must add the magic word stp at the end of every command to execute it.

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

Find these linse in your ~/.zshrc then delete the content between.

# === BePolite start ===
...
# === BePolite end ===

๐Ÿ”ด Ultra Annoying

The final countdownโ€ฆ Ultra annoying pranks, like session scripts or resets.

๐Ÿ—‘๏ธ 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