Skip to content

Instantly share code, notes, and snippets.

Reece Fowell reecefowell

Block or report user

Report or block reecefowell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View IllTellYouWhenIFindOut
tags: $(this).data('tag-license-table'),
tokenSeparators: [",", " "]
// values go between braces, and have looking format
// i.e key: value
Here is a longer example with deeper nesting
View Install MAMP Development stack on Mountain Lion using

Install MAMP Development stack on Mountain Lion using MacPorts

NOTE: I like to prepend some of the commands with time just for curiosity’s sake to see how long it takes.

Turn off the built-in Apache

Go to System Preferences -> Sharing -> uncheck the Personal Web sharing. You will never turn Apache on/off here again.

Install Xcode via Mac App Store

reecefowell / gist:4595033
Created Jan 22, 2013
cat /proc/cpuinfo; cat /etc/lsb-release ; uname -a
View gist:4595033
~ cat /proc/cpuinfo; cat /etc/lsb-release ; uname -a
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 26
model name : Intel(R) Xeon(R) CPU W3520 @ 2.67GHz
stepping : 5
cpu MHz : 2659.000
cache size : 8192 KB
fdiv_bug : no
reecefowell / gist:4602582
Created Jan 23, 2013
Git Bash Colours 2.0
View gist:4602582
parse_git_branch () {
#git name-rev HEAD 2> /dev/null | sed -e 's/\^0$//' | sed 's#HEAD\ \(.*\)# (\1)#'
#git diff --shortstat
#git show --raw --abbrev-commit --date=local
#BR=$(git log --oneline -n 3 2>/dev/null) || { echo "$@"; exit; }
#br=$(git log --oneline -n 5 2>&1) || br=""
xr=$(git diff HEAD --stat 2>&1) || xr=""
br=$(git ph -n 7 2>&1) || br=""
echo "$xr"
echo "$br"
View gitconfig
excludesfile = /Users/reecefowell/Library/Application Support/TorusKnotSoftware/SourceTree/gitignore_default.txt
quotepath = false
ignorecase = false
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/Other/Developer/Version Management/ \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
View gist:4942145

1) Install git-core

$ sudo port selfupdate               # updates the ports tree and port utility
$ sudo port install git-core +svn    # installs git

2) Create your ~/ ~/.bash_rc

Open vi and paste the following code, save file as ~/

View gist:4966533
interface ChainedInterface
public function init();
public function prerequisites();
class SetupVHost implements ChainedInterface
public function init()
# bash/zsh git prompt support
# Copyright (C) 2006,2007 Shawn O. Pearce <>
# Distributed under the GNU General Public License, version 2.0.
# This script allows you to see the current branch in your prompt.
# To enable:
# 1) Copy this file to somewhere (e.g. ~/
View httpd-vhost.conf
# Virtual Hosts
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
# Please see the documentation at
# <URL:>
reecefowell / ToDoApp.html
Created May 6, 2013
Todo list app, written in Javascript. By Reece Fowell.
View ToDoApp.html
<!DOCTYPE html>
<html lang="en">
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<link href="" rel="stylesheet" type="tex/css" />
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
You can’t perform that action at this time.