Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
@bonhag
bonhag / gist:6957188
Created October 13, 2013 01:58
Thank this person
http://stackoverflow.com/questions/4719125/imagemagick-or-ghostscript-convert-a-multi-page-tiff-to-a-multi-page-pdf
@bonhag
bonhag / gist:5793309
Created June 16, 2013 20:30
Shuffle your Turntable playlist
var shuffle = function() {
var playlistLength = $('#playlist .song').length;
for (var i = 1; i < playlistLength; i = i + 1) {
setTimeout(function() {
var s = Math.floor(Math.random() * playlistLength);
console.log('moving song ' + s + ' to bottom');
$($('#playlist .song .playlist-open-options')[s]).click();
$('.move-bottom').click();
}, 500 * i);
}
https://support.adp.com/adp_payroll/content/hybrid/@runcomplete/doc/pdf/FSDDenroll.pdf
@bonhag
bonhag / gist:5131227
Created March 11, 2013 00:47
Mirrors to download FreeBSD 9.1 DVD, in order of speed
for n in `seq 15`; do ping -c 1 ftp${n}.us.freebsd.org; done | grep time | awk -F'=' '{print $4, $1}' | sort -n | cut -d ' ' -f 6 | sed 's_\(.*\):_ftp://\1/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/9.1/FreeBSD-9.1-RELEASE-amd64-dvd1.iso_'