Skip to content

Instantly share code, notes, and snippets.


E ericholsinger

View GitHub Profile
ericholsinger / convertmp4
Created Mar 19, 2015
convertmp4: A bash shell script to make the calls to ffmpeg a little simpler for converting OBS .flv output to .mp4
View convertmp4
# this will call ffmeg to convert a .flv to a .mp4
# NOTE: ffmeg is expected to be install and in your path
# usage: convertmp4 infile.flv
# output will be a .mp4 file in the same directory
ericholsinger / xcode-build-number-increment-phase
Created Dec 12, 2013
This is a script for incrementing build numbers in xcode, automatically during the build phase. It handles the build in the format xx.yy.zz where zz is incremented for each build, and yy is incremented when you archive your project. The xx is handled manually in this case. For more information, you can read my blog post at
View xcode-build-number-increment-phase
# Only increase the build number on Device and AdHoc/AppStore build
if [ $conf == "Release" ]
echo "Bumping bundle version number..."
bundleVersion=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$buildPlist" | /usr/bin/perl -pe 's/(\d+\.)(\d+)(\.\d+)/$1.($2+1).$3/eg'`