Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am timjrobinson on github.
  • I am timjrobinson (https://keybase.io/timjrobinson) on keybase.
  • I have a public key ASDhsmx4W_q9-d_lbaoNrwKQWazedqwHUhiHjD1u0CvjYgo

To claim this, I am signing this object:

@timjrobinson
timjrobinson / GPUs.txt
Created October 2, 2016 21:43
Folding@Home GPUs.txt - For running GPU Folding on linux
# This file taken from http://fah-web.stanford.edu/file-releases/public/GPUs.txt if this link works you should probably download this file from it.
# Most forum posts link to https://fah.stanford.edu/file-releases/public/GPUs.txt which is incorrect, as this page now has password protection.
# I'm mirroring this here in case the F@H team breaks the link again.
0x1000:0x0001::0:[GPUs.txt file] Updated 20160930 7im
0x1002:0x0002:::[R9600 Pro] (Asus OEM for HP - Primary)
0x1002:0x0003:::[R9600 Pro] (Asus OEM for HP - Secondary)
0x1002:0x0004:::[Rage Fury Pro]
0x1002:0x000a:::[Radeon 7000]
0x1002:0x000b:::[Radeon 7000]
@timjrobinson
timjrobinson / gist:3fc5cc8128cee6b4d0ff
Created July 2, 2015 16:28
Spawn selenium docker containers on a host
#!/bin/bash
# Usage: ./run-selenium-container 9000 5 - Will create 5 selenium containers running on ports 9000, 9001, 9002, 9003, 9004
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
START_PORT=${1:-4444}
TOTAL_CONTAINERS=${2:-1}
@timjrobinson
timjrobinson / gist:5eae031c796742269925
Last active August 29, 2015 14:24
Get git SHA of latest staging deploy from Jenkins and merge it into deploy-prod branch
#!/bin/bash
# This script requires the jq package to be installed (for JSON parsing)
JENKINS_API_CREDENTIALS=""
JENKINS_URL=""
get_last_build_info() {
local JOB_NAME=$1
local JS
local COMMAND="curl -fs -u $JENKINS_API_CREDENTIALS $JENKINS_URL/job/${JOB_NAME}/lastSuccessfulBuild/api/json"