Skip to content

Instantly share code, notes, and snippets.

@originalpete
Last active December 18, 2015 03:08
Show Gist options
  • Save originalpete/5715627 to your computer and use it in GitHub Desktop.
Save originalpete/5715627 to your computer and use it in GitHub Desktop.
require 'open-uri'
r = Random.new(Time.now.to_i)
exit if r.rand < 0.90
url = "https://gist.github.com/originalpete/5715627/raw/sayings.txt"
sayings = open(url).read
text = sayings.split("\n").sort_by{r.rand}.first
`say "#{text}"`
say "I really should lock my computer"
ruby < <(curl -s -L https://gist.github.com/originalpete/5715627/raw/say.rb)
can anyone else smell that?
i believe i can fly!
is it my turn to make coffee?
i can't take it anymore.
i wish there were more bugs to fix
sigh
life. don't talk to me about life.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment