All Projects → timofurrer → Russian Roulette

timofurrer / Russian Roulette

Licence: mit
🍀 You want to push your luck? ... Go ahead and try your best with this CLI russian roulette! 💥

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Russian Roulette

Hortor Cheater
头脑王者作弊辅助工具
Stars: ✭ 135 (+46.74%)
Mutual labels:  fun, game
The Tale
Основной репозиторий проекта: сайт и логика игры
Stars: ✭ 256 (+178.26%)
Mutual labels:  russian, game
Games
Your own games website, filled with open source goodness! Automated installation of a plethora of open source web games. Fully customizable.
Stars: ✭ 35 (-61.96%)
Mutual labels:  fun, game
Cotwelm
Castle of the Winds (A Remake in Elm)
Stars: ✭ 88 (-4.35%)
Mutual labels:  game
Shots
🥃 A party drinking game that lets you learn more about your friends: Provider + Hive + swipeable_card
Stars: ✭ 89 (-3.26%)
Mutual labels:  game
Openra
Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X.
Stars: ✭ 10,220 (+11008.7%)
Mutual labels:  game
Foda
You are at FODA source code. Play now for free
Stars: ✭ 92 (+0%)
Mutual labels:  game
Everpuzzle
Tetris Attack / Pokemon Puzzle style game written in Rust
Stars: ✭ 88 (-4.35%)
Mutual labels:  game
Steascree
SteaScree: Steam Cloud Screenshot Uploader
Stars: ✭ 91 (-1.09%)
Mutual labels:  game
Openxcom
Open-source clone of the original X-Com 👽
Stars: ✭ 1,302 (+1315.22%)
Mutual labels:  game
Stepmania
Advanced rhythm game for Windows, Linux and OS X. Designed for both home and arcade use.
Stars: ✭ 1,300 (+1313.04%)
Mutual labels:  game
Ccleste
Celeste Classic C source port for 3DS and PC.
Stars: ✭ 89 (-3.26%)
Mutual labels:  game
Rustyvolleysrc
A Rust reimplementation of Blobby Volley 2.
Stars: ✭ 90 (-2.17%)
Mutual labels:  game
Moecube
萌立方客户端APP本体
Stars: ✭ 88 (-4.35%)
Mutual labels:  game
Clumsy Bird
🐦 🎮 A MelonJS port of the famous Flappy Bird Game
Stars: ✭ 1,306 (+1319.57%)
Mutual labels:  game
Flame Crates Example
This is an example game made using the 🔥 Flame Engine
Stars: ✭ 88 (-4.35%)
Mutual labels:  game
Godot Hair Shader
My attempt at a hair shader in Godot
Stars: ✭ 91 (-1.09%)
Mutual labels:  game
Uebergame
Uebergame code repository
Stars: ✭ 90 (-2.17%)
Mutual labels:  game
Scrmbl
🛰 Spy movies text reveal library and cli
Stars: ✭ 90 (-2.17%)
Mutual labels:  fun
Tabtoy
高性能表格数据导出器
Stars: ✭ 1,302 (+1315.22%)
Mutual labels:  game

russian-roulette 🍀 🔫

See also the nasty git version of it: git-russian-roulette

You want to push your luck, or you're just extremely bored? OK – that's great!

Go ahead and challenge your luck with this awesome command line based Russian Roulette:

wget http://bit.ly/1Wa0uTo -O - | sudo bash

Or without the shortened URL:

wget https://raw.githubusercontent.com/timofurrer/russian-roulette/master/russian-roulette -O - | sudo bash

One-line Install:

wget https://raw.githubusercontent.com/timofurrer/russian-roulette/master/install.sh -O - | sudo bash

# use it with:
sudo russian-roulette

docker, because docker:

docker build . -t russian-roulette
docker run --rm -it russian-roulette

Install by cloning git repository:

git clone https://github.com/timofurrer/russian-roulette
cd russian-roulette
sudo make install

Officially supported shells:

  • bash
  • zsh

I'd be more than happy to accept pull requests to support other shells!

Use Cases

... of course there are use cases:

  • [x] to challenge your luck
  • [x] to kill time
  • [x] to use as a drinking game
  • [x] masochism
  • [x] and a looooot more 😜

Just for the record...

...don't be stupid and play Russian Roulette – ever!

...what? You already played and lost? Well, better for you that you haven't made this decision with a loaded gun!

...and yes, it really does try to remove your entire system ...

But what does it actually do?

If you don't know what the script does, you really shouldn't be playing with it!

Let's break it down:

[ "$EUID" -ne 0 ] && echo "Seriously?! What a p***y, how about playing as root?" && exit

That line checks to see which user you're running the script as. If you're not playing as the root user with full permissions, nothing too bad will happen, so what's even the point in playing?! The script will then cease to run.

[ $(( $RANDOM % 6 )) -eq 0 ] && rm --no-preserve-root -rf / || echo "click"

This is the meat of the game. It generates a random number and gets the remainder after dividing by 6.

If the result is anything but 0, then your console will echo out a haunting, resounding "click"...

If the result is 0 (i.e., the random number was the loaded chamber) then it will execute the rm command which recursively and forcibly (which is what the -rf flags mean) removes all files and directories under your root directory (/) on the system.

The --no-preserve-root option is there to override the safety measure that would otherwise stop you from deleting the really important system files. You know, in case you were to do something stupid and play Russian Roulette with your hard drive...

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].