Last active
October 5, 2015 00:18
-
-
Save ryangreenberg/2722492 to your computer and use it in GitHub Desktop.
pid roulette
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps axc -o pid | grep -v PID | ruby -e 'puts STDIN.read.split("\n").shuffle.join("\n")' | head -1 | xargs kill |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.