Skip to content

Instantly share code, notes, and snippets.

View stealthv's full-sized avatar

Bran Handley stealthv

View GitHub Profile
@stealthv
stealthv / gist:47e0637a2fbd3f8fc998e55e701258e8
Last active December 7, 2016 21:11 — forked from jaredsinclair/set-build-number.sh
Simple, Git-friendly run script for automated build numbering in Xcode
#
# Set the build number to the current git commit count.
# If we're using the Dev scheme, then we'll suffix the build
# number with the current branch name, to make collisions
# far less likely across feature branches.
# Based on: http://w3facility.info/question/how-do-i-force-xcode-to-rebuild-the-info-plist-file-in-my-project-every-time-i-build-the-project/
#
# Updated with dSYM handling from http://yellowfeather.co.uk/blog/auto-incrementing-build-number-in-xcode-revisited/
#
@stealthv
stealthv / com.holeintheceiling.LaunchAppViz2Daily.plist
Last active December 21, 2015 04:39
A launchd config file that will load AppViz 2 daily at 8 a.m. If you have AppViz 2 in `/Applications` then it should just work. If you have it in a different location you'll need to change the path. Save in `~/Library/LaunchAgents` or `/Library/LaunchAgents` and relogin or restart.
<?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">
<!-- based on https://gist.github.com/stealthv/6250810 by Bran Handley -->
<dict>
<key>Label</key>
<string>com.holeintheceiling.LaunchAppViz2Daily</string>
<key>ProgramArguments</key>
<array>
<string>open</string>
#!/usr/bin/env bash
# Written by William Ting for the following blog post:
# http://williamting.com/posts/2012/04/18/set-up-python-and-django-on-dreamhost/
rcfile="${HOME}/.bashrc"
version="2.7.3"
setuptools_version="2.7"
tmp_dir="${HOME}/tmp-${RANDOM}"
if [[ ${#} == 0 ]]; then