Created
October 15, 2015 23:45
-
-
Save steve-ayerhart/9e44604d2b461d48bfc0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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