Skip to content

Instantly share code, notes, and snippets.

View genuinefafa's full-sized avatar
🎯
Focusing

Facundo Donato genuinefafa

🎯
Focusing
View GitHub Profile
@pkouman
pkouman / jenkins_delete_builds.groovy
Created April 27, 2017 20:19
Jenkins - Delete old builds script
MAX_BUILDS = 10 // max builds to keep
def jobs = Jenkins.instance.items;
for (job in jobs) {
println "Job: " + job.name
def recent = job.builds.limit(MAX_BUILDS)
println "Recent Builds: " + recent
println "============================="
for (build in job.builds) {
@rkumar
rkumar / itunes.sh
Created August 1, 2010 09:23
control iTunes from command line
#!/bin/bash
#
####################################
# iTunes Command Line Control v1.0
# written by David Schlosnagle
# created 2001.11.08
# edit 2010.06.01 rahul kumar
####################################
showHelp () {