Skip to content

Instantly share code, notes, and snippets.

@ananelson
ananelson / gist:7763218
Last active December 30, 2015 02:29
example jenkins build script
export PIP_DOWNLOAD_CACHE=$JENKINS_HOME/.pipcache
PYENV_HOME=$WORKSPACE/.pyenv/
if [ ! -d $PYENV_HOME ]; then
virtualenv $PYENV_HOME
fi
. $PYENV_HOME/bin/activate
pip install --upgrade dexy
@ananelson
ananelson / Requirements
Last active December 30, 2015 05:19
pegdown CLI
Versions:
args4j 2.0.21
http://maven.jenkins-ci.org/content/repositories/releases/args4j/args4j/2.0.21/args4j-2.0.21.jar
asm 4.2.0
http://download.forge.ow2.org/asm/asm-4.2-bin.zip
parboiled 1.1.6
http://repo1.maven.org/maven2/org/parboiled/parboiled-core/1.1.6/parboiled-core-1.1.6.jar
DEBUG 2014-01-09 16:59:37,070 MainThread Python 2.7.5+ (default, Sep 19 2013, 13:48:49)
[GCC 4.8.1] on linux2
DEBUG 2014-01-09 16:59:37,070 MainThread reading configuration from ['/root/.linkchecker/linkcheckerrc']
WARNING 2014-01-09 16:59:37,072 MainThread Running as root user; dropping privileges by changing user to nobody.
DEBUG 2014-01-09 16:59:37,079 MainThread configuration: [('anchors', False),
('authentication', []),
('blacklist', {'filename': '~/.linkchecker/blacklist'}),
('checkcss', False),
('checkhtml', True),
('clamavconf', '/etc/clamav/clamd.conf'),

Keybase proof

I hereby claim:

  • I am ananelson on github.
  • I am ananelson (https://keybase.io/ananelson) on keybase.
  • I have a public key whose fingerprint is 02BF EBA9 9B91 EF53 4D69 2004 2684 693F 6F78 3A29

To claim this, I am signing this object:

@ananelson
ananelson / Dockerfile
Created June 28, 2014 19:13
Squid for Docker, if it's on host OS
ENV HOST_IP_FILE /tmp/host-ip.txt
RUN /sbin/ip route | awk '/default/ { print "http://"$3":8000" }' > $HOST_IP_FILE
RUN HOST_IP=`cat $HOST_IP_FILE` && curl -s $HOST_IP | grep squid && echo "Found active squid!" && echo "Acquire::http::Proxy \"$HOST_IP\";" > /etc/apt/apt.conf.d/30proxy || echo "no squid"