Created
July 10, 2011 03:28
-
-
Save danbeam/1074226 to your computer and use it in GitHub Desktop.
The shell file that calculates the answer to life the universe and everything
This file contains 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
#!/bin/sh | |
answer() { echo -e "\n\nAnswer: 42\n"; exit; } | |
trap answer TRAP INT HUP; | |
while [ 1 ]; do head -10 /dev/urandom | hexdump -C | head -3 | egrep --color=auto '[a-f][0-9a-f]'; sleep .1; done | |
# to run - | |
# curl https://raw.github.com/gist/1074226/the_answer_to_life_the_universe_and_everything.sh | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment