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
hgillane / gist:2820358
Created May 28, 2012
osx /etc/sysctl.conf
View gist:2820358
kern.sysv.shmmax=4194304
kern.sysv.shmmin=1
kern.sysv.shmmni=32
kern.sysv.shmseg=8
kern.sysv.shmall=1024
@hgillane
hgillane / jasmine_rakefile
Created Feb 25, 2012
override jasmine's location of jasmine.yml config file
View jasmine_rakefile
begin
require 'jasmine'
class Jasmine::Config
def simple_config_file
File.join(project_root, 'spec/support/jasmine.yml')
# instead of 'spec/javascripts/support/jasmine.yml'
end
end
@hgillane
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":"http://github.com/hunt3131/post-receive-testing/commit/027fa2043b65e7d4092ba310966980db5d36a264","added":["1.txt"],"author":{"email":"hunter.gillane@gmail.com","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":"http://github.com/hunt3131/post-receive-testing","fork":false,"private":false,"homepage":"","owner":{"email":"hunter.gillane@gmail.com","name":"hunt3131"},"name":"post-receive-testing"},"ref":"refs/heads/master","before":"34891069f142cbfc80cc880e963b41a0104305c7","after":"027fa2043b65e7d4092ba310966980db5d36a264"}
View vhost
#!/bin/bash
# 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 ]
then
View wsite
#!/bin/bash
# JavaScript
mkdir js
curl -O http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js
mv jquery-1.3.2.min.js js/jquery.js
# CSS
mkdir css
View fox
#!/bin/bash
# Usage: fox page1.html [page2.html pageN.html]
if [ $# -eq 0 ]
then
echo "must specify a file"
else
for page in $@
do
View wsite
#!/bin/bash
# JavaScript
mkdir js
curl -O http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js
mv jquery-1.3.2.min.js js/jquery.js
# CSS
mkdir css
touch css/style.css
You can’t perform that action at this time.