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 |
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/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 |
Prompted by:
Who wants to write a Mac-native OSM editor with me?
— Ian Dees (@iandees) February 9, 2014
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
And a few more key followups:
I hereby claim:
To claim this, I am signing this object:
Make sure all the equipment is dry, or else keep the grounds in the grinder lid until right before brewing.
Setup a mug or glass with the press and filter. Put the funnel in the top.
Microwave the water on full power.
Two useful shortcuts for managing known wifi networks on OS X.
If you've got a modern Mac with no Ethernet, your wifi interface is en0. Otherwise, it is en1, so replace that below.
alias wifils='networksetup -listpreferredwirelessnetworks en0'This lets you list (and possibly grep) all known, previously connected wireless networks. Just type wifils.
| 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 | |
| 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 | |
| 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 |