Skip to content

Instantly share code, notes, and snippets.

View rodacato's full-sized avatar

Adrian Castillo rodacato

View GitHub Profile
@rodacato
rodacato / 0_reuse_code.js
Created January 7, 2014 03:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rodacato
rodacato / default.vcl.pl
Created August 9, 2012 15:16 — forked from bmarini/default.vcl.pl
Varnish 3.0 config file
#
# This configurations is compiled automatically, do not edit.
# Last compilation ran at: <%= Time.now %>
#
# ==============================================================================
#
# This is a basic VCL configuration file for varnish. See the vcl(7)
# man page for details on VCL syntax and semantics.
#
# Default backend definition. Set this to point to your content
@rodacato
rodacato / gist:3248673
Created August 3, 2012 15:30 — forked from jrochkind/gist:2161449
A Capistrano Rails Guide

A Capistrano Rails Guide

by Jonathan Rochkind, http://bibwild.wordpress.com

why cap?

Capistrano automates pushing out a new version of your application to a deployment location.

I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".

@rodacato
rodacato / gist:3098837
Created July 12, 2012 15:22 — forked from Kimtaro/gist:1779371
Installing the wordnet gem on OSX or Ubunut, as of July 17 2012

Getting the wordnet gem, version 0.0.5, working is a little tricky at the moment. It's being rewritten but isn't released yet and the dbd gem is in a similar state.

These steps got it working for me on OS X Lion or Ubuntu 10.04 and MRI 1.8.7.

WordNet

Download WordNet from http://wordnet.princeton.edu/wordnet/download/current-version/

$ ./configure