Skip to content

Instantly share code, notes, and snippets.

View tjhoff's full-sized avatar

Theodore Hoff tjhoff

View GitHub Profile
@tomlankhorst
tomlankhorst / docker-swarm-gpu.md
Last active May 6, 2024 20:59
Instructions for Docker swarm with GPUs
@ftclausen
ftclausen / Jenkinsfile
Created April 13, 2017 05:36
Jenkins pipeline - An approach to get all commits since the last successful build.
// -*- mode: groovy -*-
// vim: set filetype=groovy :
node( 'some_node' ) {
stage( "Phase 1" ) {
sshagent( credentials: [ 'some_creds' ] ) {
checkout scm
def lastSuccessfulCommit = getLastSuccessfulCommit()
def currentCommit = commitHashForBuild( currentBuild.rawBuild )
if (lastSuccessfulCommit) {