Skip to content

Instantly share code, notes, and snippets.

/LookupMutualFunds.do?symbolField=symbol&nameField="><script>alert(13323542.3157)</script>
@CraigCottingham
CraigCottingham / gist:2152417
Created March 21, 2012 20:16
Script to turn Git version into plist preprocessor vars for Xcode
GIT=`which git`
BASE="HelloWorld/HelloWorld-Info"
PLIST="$BASE.plist"
PLIST_H="$BASE-plist.h"
touch $PLIST
VERSION=`$GIT describe --dirty | sed 's/[a-zA-Z]*//'`
SHORT_VERSION=`echo $VERSION | sed 's/\-[0-9]*\-[a-zA-Z0-9]*//'`
@CraigCottingham
CraigCottingham / .gitattributes
Created March 21, 2012 14:54
.gitignore and .gitattributes for Xcode 4.3
# treats your Xcode project file as a binary; prevents Git from trying to fix newlines, show in diffs, and excludes from merges
*.pbxproj -crlf -diff -merge
craigc@samantha:~/Projects/glitch$ gem list
*** LOCAL GEMS ***
activesupport (3.1.1)
bundler (1.0.21)
i18n (0.6.0)
multi_json (1.0.3)
nestful (0.0.7)
rake (0.9.2)