Skip to content

Instantly share code, notes, and snippets.

@ryangreenberg
Last active October 5, 2015 00:18
Show Gist options
  • Save ryangreenberg/2722492 to your computer and use it in GitHub Desktop.
Save ryangreenberg/2722492 to your computer and use it in GitHub Desktop.
pid roulette
ps axc -o pid | grep -v PID | ruby -e 'puts STDIN.read.split("\n").shuffle.join("\n")' | head -1 | xargs kill
@ryangreenberg
Copy link
Author

This will list the processes running on your computer and kill a random one. It's like playing Russian roulette, but with a bullet in every chamber.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment