Skip to content

Instantly share code, notes, and snippets.

@rawburt
Created June 30, 2015 08:49
Show Gist options
  • Save rawburt/53c75248a724c22c4c6e to your computer and use it in GitHub Desktop.
Save rawburt/53c75248a724c22c4c6e to your computer and use it in GitHub Desktop.
open a random link
ruby -r json -r net/http -e 'link=JSON.parse(Net::HTTP.get_response("smasha.ninja","/rando").body);exec("open #{link["web_url"]}")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment