Created
June 30, 2015 08:49
-
-
Save rawburt/53c75248a724c22c4c6e to your computer and use it in GitHub Desktop.
open a random link
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
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