Skip to content

Instantly share code, notes, and snippets.

View kylegibson's full-sized avatar

Kyle Gibson kylegibson

View GitHub Profile
@kylegibson
kylegibson / timetests.py
Created March 13, 2012 05:59 — forked from mahmoudimus/nose-timetests.py
Nose plugin to time tests
"""This plugin provides test timings to identify which tests might be
taking the most. From this information, it might be useful to couple
individual tests nose's `--with-profile` option to profile problematic
tests.
This plugin is heavily influenced by nose's `xunit` plugin.
Add this command to the way you execute nose::
--with-test-timer
@kylegibson
kylegibson / setup_slave.sh
Last active October 11, 2015 12:28 — forked from jlward/setup_slave.sh
Configure Jenkin slave
#!/bin/sh
main() {
configure_ssh_known_hosts
configure_mysql_ram_disk
configure_idle_tracking
}
configure_ssh_known_hosts() {
echo configuring ssh known hosts
#!/usr/bin/env python
"""
ignore_moves.py v0.2
Filter relocated lines from a unified diff format stream.
Offered under the terms of the MIT License at github.com
Taken from http://stackoverflow.com/questions/1380333/
"""
import sys
from optparse import OptionParser