Skip to content

Instantly share code, notes, and snippets.

@spudtrooper
Created February 13, 2011 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spudtrooper/824323 to your computer and use it in GitHub Desktop.
Save spudtrooper/824323 to your computer and use it in GitHub Desktop.
Prints out rd.io links of artists you listen to on pandora.com
#!/bin/sh
tshark=/Applications/Wireshark.app/Contents/Resources/bin/tshark
$tshark -i "en1" -x -f "ip src pandora.com" | awk -F" " '/^$/ {print} /^[0-9a-f]{4}/ {printf("%s",$2)}' | perl -n -e 'm/".name"\s*\:\s*"([^"]+)"/ && ($n=$1) || ($n=~s/\s+/%20/g) && print "http://www.rdio.com/#/search/$n/artists/\n"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment