Hey folks,
Here are my slides & extra info from my talk last night on Xcode from the command line.
Slides (PDF .zip
):
The notification functions that I use in Bash:
#!/bin/bash | |
# | |
# (Above line comes out when placing in Xcode scheme) | |
# | |
API_TOKEN=<TestFlight API token here> | |
TEAM_TOKEN=<TestFlight team token here> | |
SIGNING_IDENTITY="iPhone Distribution: Development Seed" | |
PROVISIONING_PROFILE="${HOME}/Library/MobileDevice/Provisioning Profiles/MapBox Ad Hoc.mobileprovision" | |
#LOG="/tmp/testflight.log" |
$ pod trunk push --allow-warnings --verbose | |
[!] Found podspec `FMDB.podspec` | |
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local | |
because checking is only performed in repo update | |
Updating spec repo `trunk` | |
CDN: trunk Relative path: deprecated_podspecs.txt, has ETag? | |
W/"65c55d2c-b6ad2" | |
CDN: trunk Relative path not modified: deprecated_podspecs.txt |
#!/bin/sh | |
SRC1=$HOME/Library/Safari | |
SRC2=$HOME/Library/Containers/com.apple.Safari/Data/Library/Safari | |
HOST=$( hostname | sed 's/\..*//' ) | |
HOUR=$( date +"%H" ) | |
DST=$HOME/Sync/Safari/$HOST/$HOUR | |
mkdir -p $DST 2>/dev/null | |
cd $SRC1 |
#/bin/sh | |
INFO=$( echo $PWD )/MyApp-Info | |
TAG=$( git describe --tags `git rev-list --tags --max-count=1` ) | |
COMMIT= | |
GITPATH=/usr/bin:/usr/local/bin:/usr/local/git/bin | |
PATH=$PATH:$GITPATH; export PATH | |
if [ -z $( which git ) ]; then | |
echo "Unable to find git binary in \$GITPATH" |
#!/bin/sh | |
SRC1=$HOME/Library/Safari | |
SRC2=$HOME/Library/Containers/com.apple.Safari/Data/Library/Safari | |
HOST=$( hostname | sed 's/\..*//' ) | |
HOUR=$( date +"%H" ) | |
DST=$HOME/Sync/Safari/$HOST/$HOUR | |
mkdir -p $DST 2>/dev/null | |
cd $SRC1 |
#!/bin/sh | |
for x in `heroku config`; do | |
if [[ $x == HUBOT* ]]; then | |
name=$x | |
elif [ $x != '=>' ]; then | |
value=$x | |
export $name=$value | |
fi | |
done |
const moment = require('moment'); | |
const raw = require('config/raw').raw; | |
const generatePostFilename = (timestamp, slug) => { | |
const postDate = moment(timestamp).format('YYYY-MM-DD'); | |
return `content/microposts/${postDate}-${slug}/index.md`; | |
}; | |
const generatePostUrl = (timestamp, slug) => { | |
const postDate = moment(timestamp).format('YYYY/MM/DD'); |
#!/bin/sh | |
if [ -z "$1" -o -z "$2" -o -z "$3" ]; then | |
echo "Usage: $0 [movie file] [fps] [delay]" | |
exit 1 | |
fi | |
DIR=/tmp/anigif-$( date +"%s" ) | |
mkdir $DIR |
Hey folks,
Here are my slides & extra info from my talk last night on Xcode from the command line.
Slides (PDF .zip
):
The notification functions that I use in Bash:
INFO=$( echo $TARGET_BUILD_DIR )/$( echo $INFOPLIST_PATH | sed -e 's/\.plist$//' ) | |
echo $INFO | |
TAG= | |
COMMIT= | |
CURRENT= | |
CURRENT_BUILD= | |
GITPATH=/usr/bin:/usr/local/bin:/usr/local/git/bin | |
PATH=$PATH:$GITPATH; export PATH | |
if [ -z $( which git ) ]; then |