Skip to content

Instantly share code, notes, and snippets.

Erica Ehrhardt SteelPangolin

Block or report user

Report or block SteelPangolin

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
Decorate SCons Environment constructor so that Homebrew paths are always included.
from functools import wraps
import SCons.Environment
# Homebrew install directory
homebrew = '/opt/homebrew'
View gist:9009942
function master()
$num_partitions = 10;
// not every system has this :(
//setproctitle("Parallel master: {$num_partitions} partitions");
$workers = [];
SteelPangolin /
Created Jun 14, 2014
How to package your own mod_auth_openid 0.9 for Ubuntu
# Ubuntu version of package:
# FPM man page:
# FPM instructions for autotools:
# install build-time dependencies
# yes, apache2 is a build-time dependency, otherwise APXS breaks:
# "checking Apache version... configure: error: /usr/bin/apxs2 says that your apache binary lives at /usr/sbin/apache2 but that file isn't executable."
sudo aptitude -y install \
SteelPangolin /
Created Jan 23, 2015
wget optimized for creating locally browseable archives
wget \
--execute robots=off \
--no-check-certificate \
--mirror \
--html-extension \
--convert-links \
--backup-converted \
--page-requisites \
View parsekit
--- a/parsekit-1.3.0/parsekit.c
+++ b/parsekit-1.3.0/parsekit.c
@@ -78,18 +78,18 @@
#ifdef IS_CV
/* PHP >= 5.1 */
} else if (node->op_type == IS_CV) {
- add_assoc_long(return_value, "var", node->u.var);
- add_assoc_stringl(return_value, "varname", op_array->vars[node->u.var].name, op_array->vars[node->u.var].name_len, 1);
+ add_assoc_long(return_value, "var", node->u.op.var);
+ add_assoc_stringl(return_value, "varname", op_array->vars[node->u.op.var].name, op_array->vars[node->u.op.var].name_len, 1);
SteelPangolin /
Last active Aug 29, 2015
Look for wordexp() imports on your $PATH
Look for binaries on $PATH that use the wordexp() POSIX libc function.
Only looks at dynamically linked binaries.
Works on Mac OS X and Linux systems, Python versions 2.4 to 3.4.
import subprocess
import os
import sys
SteelPangolin /
Created Apr 3, 2015
Upgrade all outdated packages managed by pip. Great for virtualenvs.
pip list --outdated | cut -d ' ' -f 1 | xargs pip install -U
SteelPangolin /
Created Apr 7, 2015
Packer template for building a Debian-based AMI suitable for developing and running Python 3.4-based services

This is a Packer template for building a Debian-based AMI suitable for developing and running Python 3.4-based services. It uses a Debian 8 prerelease image as the base.

To build the AMI:

  • Install Packer.
  • Make sure your Amazon credentials are in ~/.aws/credentials.
  • If using an AWS region other than Oregon, change region and source_ami in packer-template.json.
  • Run packer build packer-template.json.
View Exploring is never
SteelPangolin /
Created May 12, 2015
Generate a random X-COM mission name.
#!/usr/bin/env python3
Generate a random X-COM mission name.
from random import choice
prefixes = [
You can’t perform that action at this time.