Skip to content

Instantly share code, notes, and snippets.

@stefancrain
stefancrain / gist:5091689
Last active December 14, 2015 13:09
Linux Setup for Bluebird in BASH
#!/bin/bash
# run with sudo ./initial_setup.sh
cd ~/
sudo apt-get update
sudo apt-get upgrade -y
# install some basic programs
@stefancrain
stefancrain / slowconvert.sh
Created February 14, 2015 01:16
Find all image files and convert them to a jpgs with ImageMagick's convert
#!/bin/bash
# 2015 Stefan Crain - stefancrain@gmail.com
# Find all image files and convert them to a jpgs with ImageMagick's convert
#
# Usage
# ./slowconvert.sh toscan/ output/
parsedCLI=("$@")
scandir=${parsedCLI[0]%/}
outputdir=${parsedCLI[1]:-$scandir}
@stefancrain
stefancrain / convert.sh
Created February 14, 2015 00:39
Fastest image converter on osx
#!/bin/bash
# 2015 Stefan Crain - stefancrain@gmail.com
# Find all image files and convert them to a jpgs with sips
# OSX only
#
# Usage
# ./convert.sh toScan/ Output/
parsedCLI=("$@")
scandir=${parsedCLI[0]%/}