Skip to content

Instantly share code, notes, and snippets.

@caffo
Created February 21, 2012 16:27
Show Gist options
  • Save caffo/1877252 to your computer and use it in GitHub Desktop.
Save caffo/1877252 to your computer and use it in GitHub Desktop.
coding music radio stations d-_-b
#!/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?
@jao
Copy link

jao commented Feb 21, 2012

mpg123 -Z curl -sL 'http://is.gd/U4tpcO' | awk '{print $2};'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment