Skip to content

Instantly share code, notes, and snippets.

View jbest84's full-sized avatar
🏠
Working from home

Jason jbest84

🏠
Working from home
View GitHub Profile
@jbest84
jbest84 / gist:12619084f51043aa530d9cf1a82983a2
Last active May 6, 2016 14:19 — forked from rb2k/gist:8372402
A jenkins script to clean up workspaces on slaves
// Check if a slave has < 10 GB of free space, wipe out workspaces if it does
import hudson.model.*;
import hudson.util.*;
import jenkins.model.*;
import hudson.FilePath.FileCallable;
import hudson.slaves.OfflineCause;
import hudson.node_monitors.*;
for (node in Jenkins.instance.nodes) {
@jbest84
jbest84 / createiso-demo.ps1
Created March 15, 2016 20:21 — forked from marnix/createiso-demo.ps1
Demo for PowerShell script to create ISO using IMAPI COM component, as a simplification for StackOverflow answer http://stackoverflow.com/a/8325316/223837
# Inspiration from
#
# http://blogs.msdn.com/b/opticalstorage/archive/2010/08/13/writing-optical-discs-using-imapi-2-in-powershell.aspx
#
# and
#
# http://tools.start-automating.com/Install-ExportISOCommand/
#
# with help from
#
@echo off
if .%1. == .. (
echo USAGE: %0 [product name]
goto :EOF
)
set PRODUCT=argos-%1
echo.
#!/bin/bash
if [ .$1. == .. ]; then
echo "USAGE: $0 [product name]"
exit 1
fi
PRODUCT=argos-$1
echo