Skip to content

Instantly share code, notes, and snippets.

View gerad's full-sized avatar

Gerad Suyderhoud gerad

View GitHub Profile
@gerad
gerad / hack.sh
Created April 12, 2012 22:58 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2371651/hack.sh | sh
#
@gerad
gerad / xcode-git-version.sh
Created April 5, 2012 01:03 — forked from jpwatts/xcode-git-version.sh
This Xcode 4 build phase script automatically sets the version and short version string of an application bundle based on information from the containing Git repository.
#!/bin/bash
# This script automatically sets the version and short version string of
# an Xcode project from the Git repository containing the project.
#
# To use this script in Xcode 4, add the contents to a "Run Script" build
# phase for your application target.
set -o errexit
set -o nounset
class ServerJuice
attr_reader :script_name, :server, :hostname
def initialize(script_name, server, hostname, mysql_password = "")
@script_name = script_name
@server = server
@hostname = hostname
@mysql_password = mysql_password
end