Skip to content

Instantly share code, notes, and snippets.

@steve-ayerhart
Created October 15, 2015 23:45
Show Gist options
  • Save steve-ayerhart/9e44604d2b461d48bfc0 to your computer and use it in GitHub Desktop.
Save steve-ayerhart/9e44604d2b461d48bfc0 to your computer and use it in GitHub Desktop.
alias lstrmr=livestreamer-wrapper
alias twitch=twitch-wrapper
livestreamer-wrapper () {
livestreamer $1 best 1>/dev/null &
}
twitch-wrapper () {
livestreamer-wrapper twitch.tv/$1
}
sc2 () {
ruby -e 'require "json";JSON.parse(ARGV[0])["streams"].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&limit=10')"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment