Skip to content
View wifitricks.md

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.

View aeropress.md
  • For one regular mug / two shots, use one cup of water (bottom line) and two scoops of beans.
  • For my Peregrine mug / three shots, use 1.5 cups of water (between the two lines) and three scoops of beans.
  • For a Klean Kanteen / four shots, use two cups of water (top line) and four scoops of beans.

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.

View keybase.md

Keybase proof

I hereby claim:

  • I am incanus on github.
  • I am incanus (https://keybase.io/incanus) on keybase.
  • I have a public key whose fingerprint is 2231 DFF0 869E E3A5 885A E7D4 F787 7A2B C9C4 0C31

To claim this, I am signing this object:

View osmosx.md

Native OS X OpenStreetMap editing app

Reasoning

Prompted by:

Who wants to write a Mac-native OSM editor with me?

— Ian Dees (@iandees) February 9, 2014

And a few more key followups:

View anigif.sh
#!/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
View xcode-cli-ch.md

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:

View increment-build-number.sh
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
View xcode-git-tools.sh
. `xcode-select -p`/usr/share/git-core/git-completion.bash
. `xcode-select -p`/usr/share/git-core/git-prompt.sh
View colored-git-prompt.sh
NO_COLOR="\[\e[0m\]"
LIGHT_GRAY="\[\e[30;1m\]"
RED="\[\e[0;31m\]"
__user_and_host="$NO_COLOR\u$LIGHT_GRAY@$NO_COLOR\H"
__date_and_time="$NO_COLOR\d$LIGHT_GRAY|$NO_COLOR\T"
__git_branch='$(__git_ps1 "%s")'
__working_path="$NO_COLOR\w"
__prompt_symbol="$NO_COLOR\$"
View notifications.sh
gwd()
{
$*
growlnotify "${1} is done" -m '' -s
}
bwd()
{
$*
printf \\a
Something went wrong with that request. Please try again.