Skip to content

Instantly share code, notes, and snippets.

View gnarargs's full-sized avatar

Hunter Gillane gnarargs

  • Initial Capacity [IC]
  • Santa Cruz
View GitHub Profile
@gnarargs
gnarargs / gist:2820358
Created May 28, 2012 18:08
osx /etc/sysctl.conf
kern.sysv.shmmax=4194304
kern.sysv.shmmin=1
kern.sysv.shmmni=32
kern.sysv.shmseg=8
kern.sysv.shmall=1024
@gnarargs
gnarargs / jasmine_rakefile
Created February 25, 2012 17:44
override jasmine's location of jasmine.yml config file
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
@gnarargs
gnarargs / lab_rat
Created October 1, 2011 02:23
Acceptance dsl for js
// lab_rat.js
var LabRat = {
container: '#jasmine-fixtures',
setContainer: function(newContainer) {
this.container = newContainer;
},
fillIn: function(selector, content) {
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
{"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"}
#!/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
alias lcear='clear'
#!/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
@gnarargs
gnarargs / fox
Created November 21, 2009 06:36
#!/bin/bash
# Usage: fox page1.html [page2.html pageN.html]
if [ $# -eq 0 ]
then
echo "must specify a file"
else
for page in $@
do
#!/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