Skip to content

Instantly share code, notes, and snippets.

View bolmaster2's full-sized avatar

Joel Larsson bolmaster2

View GitHub Profile
@bolmaster2
bolmaster2 / gist:1570347
Created January 6, 2012 12:21
Batch conversion of png to jpg
mogrify -format jpg -quality 80 *.png
@bolmaster2
bolmaster2 / show_range_values.js
Created September 12, 2011 07:45
Show the html5 input type range values
// show the html5 input type range values
function show_ranges() {
// selector and classname on the range value
var selector = "input[type=range]",
class_name = "range-value";
// get the range values with jquery
var ranges = $(selector);
// check for support for the html5 range input and then show the value from the range
@bolmaster2
bolmaster2 / gist:966118
Last active September 25, 2015 18:37
FTP upload of files
#!/bin/bash
HOST=""
USER=""
PASS=""
LCD="./"
RCD="/path/to/remote/"
lftp -e "mirror --reverse \
--delete \
--verbose \