Skip to content

Instantly share code, notes, and snippets.

@mikker
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save mikker/c2b8bc95ad2162f2cdda to your computer and use it in GitHub Desktop.

Select an option

Save mikker/c2b8bc95ad2162f2cdda to your computer and use it in GitHub Desktop.
Search Rdio for currently playing track on DR P6
#!/usr/bin/env ruby
require 'uri'
track = `whodis-p6`.chomp.gsub("'", '')
search_url = "http://www.rdio.com/search/#{URI.escape track}/"
system "open -a Rdio #{search_url}"
@mikker

mikker commented Dec 17, 2014

Copy link
Copy Markdown
Author

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