Skip to content

Instantly share code, notes, and snippets.

View lachlanroche's full-sized avatar

Lachlan Roche lachlanroche

View GitHub Profile
@lachlanroche
lachlanroche / azure.rb
Created February 4, 2015 13:10
Distribute .ipa files via Azure blob storage.
#!/bin/ruby
require 'cfpropertylist'
require 'uuid'
require 'azure'
require 'optparse'
options = {}
optparse = OptionParser.new do |opt|
opt.on('--ipa app.ipa', '-i app.ipa') { |o| options[:ipa] = o }
@lachlanroche
lachlanroche / gist:5933969
Created July 5, 2013 11:37
Build handbrake from bash
rm -rf build
mkdir build
cd build
../configure --arch=x86_64
make
@lachlanroche
lachlanroche / gist:5933864
Last active December 19, 2015 09:29
Transcoding WWDC session videos to mp4.
for I in *mov; do
[ -s "$I" ] && ~/bin/HandBrakeCLI -i "$I" -o "../reencoded/${I%mov}mp4" -e x264 --crop 0:0:0:0 -q 29.75 --x264-preset veryfast
done