Skip to content

Instantly share code, notes, and snippets.

View dcreager's full-sized avatar

Douglas Creager dcreager

View GitHub Profile
@dcreager
dcreager / testing-tables.md
Last active April 1, 2020 16:45
Testing tables
header header header
a b c
d e
a b c
@dcreager
dcreager / transcript.log
Created November 10, 2017 16:30
Testing a package using Buzzy
# assuming you already have the code checked out and you've been working on it
$ cd varon-t
$ buzzy test
[1] Build varon-t 3.0.0+4+git (cmake)
...snip...
[2] Test varon-t 3.0.0+4+git (cmake)
Running tests...
Test project /home/dcreager/.cache/buzzy/build/varon-t-local-bd7557b2/build
Start 1: test-perf-dq
1/2 Test #1: test-perf-dq ..................... Passed 3.98 sec
@dcreager
dcreager / transcript.log
Last active November 10, 2017 16:41
Installing a package using Buzzy
$ git clone https://github.com/dcreager/varon-t.git
$ cd varon-t
$ buzzy install
[1] Clone git://github.com/dcreager/libcork.git (master)
[2] Clone git://github.com/dcreager/clogger.git (master)
[3] Clone git://github.com/dcreager/bowsprit.git (master)
[4] Clone git://github.com/dcreager/buzzy-core.git (master)
[5] Install native Arch package libcork 0.15.0
[6] Build clogger 1.0.0 (cmake)
[7] Stage clogger 1.0.0 (cmake)
@dcreager
dcreager / buck
Created July 10, 2015 14:26
Script to run a docker image with $PWD available inside and with SSH forwarding
#!/bin/sh
if [ -n "$SSH_AUTH_SOCK" ]; then
SSH_AUTH_DIR=`dirname $SSH_AUTH_SOCK`
SSH_OPTS="-v $SSH_AUTH_DIR:$SSH_AUTH_DIR -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK"
fi
IMAGE=$1
shift
@dcreager
dcreager / wait-for-interface
Created August 22, 2014 10:50
Wait for an interface to have an IP address
#!/bin/sh
INTERFACE=$1
if [ -z $INTERFACE ]; then
echo "Usage: wait-for-interface [interface name]"
exit 1
fi
echo "Wait for $INTERFACE to have an IP address..."
@dcreager
dcreager / keybase.md
Created June 13, 2014 11:17
Keybase.io proof of identity

Keybase proof

I hereby claim:

  • I am dcreager on github.
  • I am dcreager (https://keybase.io/dcreager) on keybase.
  • I have a public key whose fingerprint is 4264 88AF 0C16 318A 3728 CC7C 45D2 1F1C 6453 AD83

To claim this, I am signing this object:

@dcreager
dcreager / cython_zmq_setup.py
Created September 1, 2010 15:40
setup.py snippet for accessing pyzmq's Cython interface
# Check that ZMQ is installed at compile-time. If it is, update our
# Cython include path to find the pyzmq .pxd files. If not, print out
# a warning.
cython_include_path = []
try:
import zmq
cython_include_path.append(zmq.include_dir())
except ImportError:
@dcreager
dcreager / version.py
Created February 10, 2010 20:30
Extract a setuptools version from the git repository
# -*- coding: utf-8 -*-
# Author: Douglas Creager <dcreager@dcreager.net>
# This file is placed into the public domain.
# Calculates the current version number. If possible, this is the
# output of “git describe”, modified to conform to the versioning
# scheme that setuptools uses. If “git describe” returns an error
# (most likely because we're in an unpacked copy of a release tarball,
# rather than in a git working copy), then we fall back on reading the
# contents of the RELEASE-VERSION file.