Skip to content

Instantly share code, notes, and snippets.

@caffo
Created November 1, 2010 15:05
Show Gist options
  • Save caffo/658304 to your computer and use it in GitHub Desktop.
Save caffo/658304 to your computer and use it in GitHub Desktop.
oneliner radio
#!/usr/bin/env ruby
stations = {
'atmos' => 'http://89.179.179.5:8107/',
'goth' => 'http://85.25.184.19:7500/',
'goa' => 'http://87.230.21.161:6666/',
'heavy' => 'http://www.anothercog.com:8000/'
}
stations[ARGV[0]].nil? ? stations.each{|s| p s} : exec("mpg123 #{stations[ARGV[0]]}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment