Created
February 21, 2012 16:27
-
-
Save caffo/1877252 to your computer and use it in GitHub Desktop.
coding music radio stations d-_-b
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
#!/usr/bin/env irb -f --noverbose -r yaml -r open-uri --noprompt | |
YAML::load(open('http://is.gd/U4tpcO')) | |
exec("mpg123 #{_[ARGV[0]]}") unless _[ARGV[0]].nil? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mpg123 -Z
curl -sL 'http://is.gd/U4tpcO' | awk '{print $2};'