Skip to content

Instantly share code, notes, and snippets.

@skabber
skabber / KeyGrinder.plist
Created January 4, 2013 05:45
KeyGrinder .mobileprovision file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppIDName</key>
<string>Key Grinder Beta</string>
<key>ApplicationIdentifierPrefix</key>
<array>
<string>9SW4KH6NLF</string>
</array>
DSYM_FILE=${WORKSPACE}/${PRODUCT_NAME}-${BUILD_NUMBER}.app.dSYM.zip
cd build/YOUR_CONFIGURATION-iphoneos/
zip -r -T -y ${DSYM_FILE} ${PRODUCT_NAME}.app.dSYM
curl -H X-HockeyAppToken:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -F "dsym=@${DSYM_FILE}" https://rink.hockeyapp.net/api/2/apps/YOUR_PUBLIC_APP_IDENTIFIER/app_versions
@skabber
skabber / gist:1898380
Created February 24, 2012 06:24
NSService
<key>NSServices</key>
<array>
<dict>
<key>NSMenuItem</key>
<dict>
<key>default</key>
<string>Tweet</string>
</dict>
<key>NSMessage</key>
<string>tweetService</string>
@skabber
skabber / gist:1385007
Created November 22, 2011 05:55
xcrun PackageApplication
/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${RELEASE_BUILDDIR}/${APPLICATION_NAME}.app" -o "${BUILD_HISTORY_DIR}/${APPLICATION_NAME}.ipa" --sign "${DEVELOPER_NAME}" --embed "${PROVISONING_PROFILE}”

Welcome to Drift!

Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.

Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.

To name a gist, touch its name in the toolbar.

You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.

@skabber
skabber / git_check.sh
Created September 13, 2011 13:42
Check git for updates.
#!/bin/sh
git remote update
local=$(git rev-list --max-count=1 master)
origin=$(git rev-list --max-count=1 origin/master)
if [ "$local" != "$origin" ];
then
git pull origin master
echo "Lets build it :)"
sh -ex ./build_ota.sh
@skabber
skabber / build_ota.sh
Created September 12, 2011 19:49
Xcode Build OTA
#!/bin/sh
# This script was written by Jay Graves for the 360iDev Conference.
# You can find the full slides available at http://skabber.com/
# This script requires Xcode and s3cmd http://s3tools.org/s3cmd
# You will need your own Amazon S3 account to upload files.
# Put your distribution certificates and keys in the System Keychain
# otherwise you will need to use security unlock-keychain
TARGET=GroupA
PlistBuddy=/usr/libexec/PlistBuddy
@skabber
skabber / gist:1166660
Created August 23, 2011 21:42 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job:
CTO of a Mobile development company
Favorite Python project:
Django
Favorite Conference:
WWDC
Python Experience Level:
#!/Users/jgraves/environments/python/bin/python
import time
import sys
import Growl
try:
minutes = float(sys.argv[1])
except IndexError:
print "How many minutes?"
UIImage *im = [UIImage imageNamed:@"my-image-name.jpg"];
UIImageView *uiimv = [[UIImageView alloc] initWithImage:im];
[uiimv.layer setMasksToBounds:YES];
uiimv.layer.cornerRadius = 8;
[self.view addSubview:uiimv];