Skip to content

Instantly share code, notes, and snippets.

Niklas Saers niklassaers

Block or report user

Report or block niklassaers

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@niklassaers
niklassaers / gist:f18eabb67f3547573064
Created Oct 13, 2015
Make TODO and FIXME into Warnings
View gist:f18eabb67f3547573064
TAGS="TODO:|FIXME:|\/\/TODO"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/"
@niklassaers
niklassaers / recipe-ios.sh
Created Feb 5, 2012
Compile protobuf 2.4.1 on iOS 5
View recipe-ios.sh
export ARCH=arm-apple-darwin10
export ARCH_PREFIX=${ARCH}-
export PLATFORM=iPhoneOS
export SDKVER=5.0
export DEVROOT=/Developer/Platforms/${PLATFORM}.platform/Developer
export SDKROOT="$DEVROOT/SDKs/${PLATFORM}$SDKVER.sdk"
export PKG_CONFIG_PATH="$SDKROOT/usr/lib/pkgconfig:$DEVROOT/usr/lib/pkgconfig"
export AS="$DEVROOT/usr/bin/as"
export ASCPP="$DEVROOT/usr/bin/as"
You can’t perform that action at this time.