Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am madsen on github.
  • I am cjmadsen (https://keybase.io/cjmadsen) on keybase.
  • I have a public key ASDvJbldP6mV5VaA4aYHF_NtRldCTVhpRZkF-AiozyacDgo

To claim this, I am signing this object:

@madsen
madsen / README.md
Last active June 18, 2019 06:33
Patch Asterisk to allow verifying Twilio's secure SIP trunking

Twilio Secure Trunking with Asterisk

Twilio now allows TLS & SRTP connections with their Elastic SIP Trunking. However, there are some issues with the way they've done it that prevent Asterisk from being able to verify their server's certificate.

First of all, their documentation tells you to download the Thawte Primary Root CA, when the certificate I saw was signed with the

@madsen
madsen / yapc-vlc.pl
Created June 13, 2012 20:00
Watch YAPC::NA with VLC
#! /usr/bin/perl
# USAGE: yapc-vlc ROOM
# where ROOM is L, V, 313, or 325
# Based on the work of Christoph Jokubonis:
# http://mail.pm.org/pipermail/vienna-pm/2012-June/003125.html
use strict;
use warnings;
use IPC::Cmd qw[can_run];
@madsen
madsen / join980.pl
Created November 22, 2011 00:07
Join the tiles from http://xkcd.com/980/huge/ into a single image
#! /usr/bin/perl
#---------------------------------------------------------------------
# Join the tiles from http://xkcd.com/980/huge/ into a single image
# Copyright 2011 Christopher J. Madsen
#
# This program is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@madsen
madsen / git-from-svndump-libwin32.pl
Created December 13, 2010 00:59
Create a Git repo from a Perl libwin32 Subversion dump file
#! /usr/bin/perl
#---------------------------------------------------------------------
# git-from-svndump-libwin32.pl
# Copyright 2010 Christopher J. Madsen
#
# Create a Git repo from a libwin32 Subversion dump file
#---------------------------------------------------------------------
use strict;
use warnings;
@madsen
madsen / dzil2cvt.pl
Created March 28, 2010 20:29
Convert dist.ini files from Dist::Zilla 1.x to 2.x
#! /usr/bin/perl
#---------------------------------------------------------------------
# dzil2cvt.pl
# Copyright 2010 Christopher J. Madsen
#
# This program is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@madsen
madsen / BuildReq.pm
Created March 27, 2010 06:07
Dist::Zilla plugins for build & configure requires (pre DZ 2.x)
#---------------------------------------------------------------------
package Dist::Zilla::Plugin::BuildReq;
#
# Copyright 2010 Christopher J. Madsen
#
# Author: Christopher J. Madsen <perl@cjmweb.net>
# Created: 11 Mar 2010
#
# This program is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself.