Skip to content

Instantly share code, notes, and snippets.

@steve-ayerhart
Last active October 12, 2015 01:29
Show Gist options
  • Save steve-ayerhart/853270bc8f4bc168dbc5 to your computer and use it in GitHub Desktop.
Save steve-ayerhart/853270bc8f4bc168dbc5 to your computer and use it in GitHub Desktop.
sc2 () {
ruby -e 'require "json";JSON.parse(ARGV[0])["streams"][0..9].each{|s|printf("%s ", s["channel"]["name"])};puts' "$(curl -sH 'Accept: application/vnd.twitchtv.v3+json' -X GET https://api.twitch.tv/kraken/streams?game=StarCraft+II)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment