Skip to content

Instantly share code, notes, and snippets.

@andrewalker
Created June 14, 2012 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andrewalker/2932293 to your computer and use it in GitHub Desktop.
Save andrewalker/2932293 to your computer and use it in GitHub Desktop.
Watch YAPC::NA on player of choice
#!/usr/bin/env perl
use warnings;
use strict;
# usage:
# mplayer $(perl watch.pl http://ics.webcast.uwex.edu/mediasite/Viewer/?peid=ceecb7a37e3f4dbbb13e7f5cc9f513291d)
my @parts = (shift =~ /\?peid=(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);
local $" = '-';
print "http://video.ics.uwex.edu/@parts";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment