Skip to content

Instantly share code, notes, and snippets.

@NeoCat
Created April 17, 2012 16:47
Show Gist options
  • Save NeoCat/2407416 to your computer and use it in GitHub Desktop.
Save NeoCat/2407416 to your computer and use it in GitHub Desktop.
flu-card - play sound based on IP address ( 0=B↓, 1=C, 2=D, 3=E, ... 7=B, 8=C↑, 9=D↑ )
ifconfig | awk '/inet addr:/{split($2,a,".");split(a[4],b,"");for(x in b) print "QUERY_STRING=\"fn=" int(246*(2**(1/12))**(b[x]*2-(b[x]>0)-(b[x]>3)-(b[x]>7))) "\" playNote"}' | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment