Skip to content

Instantly share code, notes, and snippets.

Adam Malone typhonius

Block or report user

Report or block typhonius

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tar -zxvf openresty-
cd openresty-
rm -rf
tar -zxvf openssl-1.0.1r.tar.gz
rm -rf openssl-1.0.1r.tar.gz
sudo ./configure --prefix=/opt --with-pcre-jit --with-ipv6 --with-pcre=pcre-8.38/ --with-openssl=openssl-1.0.1r/
View puppet.conf
# The Puppet log directory.
# The default value is '$vardir/log'.
logdir = /var/log/puppet
# Where Puppet PID files are kept.
# The default value is '$vardir/run'.
rundir = /var/run/puppet
# Where SSL certificates are kept.
typhonius /
Created Aug 6, 2015
Downloads projects from d.o to increase download count
#!/usr/bin/env perl
use strict;
use warnings;
use HTTP::Request;
use LWP::UserAgent;
use Data::Dumper;
my $source = '<PROJECT LINK>';
#my $agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36"';
typhonius /
Created Jul 6, 2015
Script that takes the current IP address of a server and updates its record with Google Domains
#!/usr/bin/env perl
use strict;
use warnings;
use HTTP::Request;
use LWP::UserAgent;
use Regexp::Common qw /net/;
use JSON;
use Socket;
typhonius / BehatTask.php
Last active Aug 29, 2015
Basic BehatTask.php class for Phing.
View BehatTask.php
* A Phing task to run Behat commands.
require_once 'phing/Task.php';
* A Behat task. Runs behavior-driven development tests against a codebase.
View govcms-ssl-patch.patch
diff --git a/.htaccess b/.htaccess
index 7ccb6a2..fa16812 100644
--- a/.htaccess
+++ b/.htaccess
@@ -56,6 +56,13 @@ DirectoryIndex index.php index.html index.htm
<IfModule mod_rewrite.c>
RewriteEngine on
+ # Redirect HTTP to HTTPS on Acquia hosted sites.
+ RewriteCond %{HTTPS} off

Keybase proof

I hereby claim:

  • I am typhonius on github.
  • I am typhonius ( on keybase.
  • I have a public key whose fingerprint is 81AC 744D AEA4 BB5F 6971 D78E 8521 A8CC D186 9962

To claim this, I am signing this object:

typhonius /
Last active Aug 29, 2015
Changes IP address CIDRs to varnish vcl regex.
use strict;
use warnings;
use Net::Netmask;
use Regexp::Assemble::Compressed;
print "Enter the filename to varnishize: ";
my $filename = <STDIN>;
typhonius /
Last active Sep 10, 2015
Generic way to install puppet across whichever platform
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
function get_hostname() {
read -p "Enter hostname: " hostname
if [ -z "$hostname" ]; then
typhonius / more_ape_tests.patch
Last active Aug 29, 2015
further tests for ape
View more_ape_tests.patch
diff --git a/ape.test b/ape.test
index 756cfeb..f34a7fe 100644
--- a/ape.test
+++ b/ape.test
@@ -31,6 +31,7 @@ class ApeTestHelper extends DrupalWebTestCase {
$modules[] = 'path';
$modules[] = 'user';
$modules[] = 'common_test';
+ $modules[] = 'ape_redirect_test';
You can’t perform that action at this time.