Skip to content

Instantly share code, notes, and snippets.

View davmillar's full-sized avatar

David Millar davmillar

View GitHub Profile
@davmillar
davmillar / email_parse.pl
Last active January 14, 2023 17:15
Puzzle Subscription Email Handler
#!/usr/bin/perl
use MIME::Parser;
use URI::Find;
use File::Fetch;
use HTML::LinkExtractor;
use Data::Dumper;
use File::Copy qw(move);
# Configure path for the output.
my $output_dir = '/home/dmillar/Dropbox/To-Solve/';
// ==UserScript==
// @name Take Over(cast)
// @version 0.1
// @namespace https://davegoesthedistance.com
// @description Convert Apple Podcast links to Overcast links.
// @author David Millar
// @match *://*/*
// @run-at document-end
// @run-at document-idle
// ==/UserScript==
@davmillar
davmillar / randInt.js
Created October 28, 2013 20:20
Quick function for generating a random integer.
var randInt = function (rMin, rMax) {
return (rMin + Math.floor(Math.random() * (rMax - rMin + 1)));
};