Skip to content

Instantly share code, notes, and snippets.

Hunter Gillane hgillane

Block or report user

Report or block hgillane

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
hgillane / gist:2820358
Created May 28, 2012
osx /etc/sysctl.conf
View gist:2820358
hgillane / jasmine_rakefile
Created Feb 25, 2012
override jasmine's location of jasmine.yml config file
View jasmine_rakefile
require 'jasmine'
class Jasmine::Config
def simple_config_file
File.join(project_root, 'spec/support/jasmine.yml')
# instead of 'spec/javascripts/support/jasmine.yml'
hgillane / lab_rat
Created Oct 1, 2011
Acceptance dsl for js
View lab_rat
// lab_rat.js
var LabRat = {
container: '#jasmine-fixtures',
setContainer: function(newContainer) {
this.container = newContainer;
fillIn: function(selector, content) {
View fb
Book the First: The Unmistakable Smell of Revolution
When you have a number of online profiles, none have the ability to completely define you.
If you have a MySpace, Ning, Flickr, and Facebook, who's to say which is the canonical representation
of you? As these other networks go out of fashion and we consolidate around Facebook, this profile
become less about representation and more about identity. And Facebook really, really, really wants to
own your identity, because it is worth a lot more money to them than just another profile. But of course
for Facebook, owning your identity is not worthwhile (profitable) unless this information can be shared
(sold) with third parties (businesses). So Facebook continually pulls up the blinds on our profile and
View sample payload from post-receive
{"commits":[{"removed":[],"message":"a text file","modified":[],"url":"","added":["1.txt"],"author":{"email":"","name":"Hunter Gillane"},"timestamp":"2010-01-03T19:48:03-08:00","id":"027fa2043b65e7d4092ba310966980db5d36a264"}],"repository":{"forks":0,"description":"just for testing","watchers":1,"open_issues":0,"url":"","fork":false,"private":false,"homepage":"","owner":{"email":"","name":"hunt3131"},"name":"post-receive-testing"},"ref":"refs/heads/master","before":"34891069f142cbfc80cc880e963b41a0104305c7","after":"027fa2043b65e7d4092ba310966980db5d36a264"}
View vhost
# sudo vhost dir domain
# $1 is the name of the directory in sites
# $2 is the domain to add to hosts file
# create a new site
if [ -d $HOME/Sites/$1 ]
View wsite
# JavaScript
mkdir js
curl -O
mv jquery-1.3.2.min.js js/jquery.js
mkdir css
View fox
# Usage: fox page1.html [page2.html pageN.html]
if [ $# -eq 0 ]
echo "must specify a file"
for page in $@
View wsite
# JavaScript
mkdir js
curl -O
mv jquery-1.3.2.min.js js/jquery.js
mkdir css
touch css/style.css
You can’t perform that action at this time.