gem install thor
mkdir -p ~/vagrants && cd ~/vagrants
curl -LO https://raw.github.com/gist/1528832/vagrantify
chmod 755 vagrantify
./vagrantify init webserver
| /* | |
| * Extends Handlebars with a basic get method for loading external | |
| * Handlebars templates. Simply pass an options object which contains | |
| * the following properties: | |
| * - path (required) : Path to the external template file to be loaded | |
| * - success (required) : Callback invoked with the compiled loaded template. | |
| * - cache (optional) : true if the template is to be cached, otherwise false. | |
| * | |
| * In addition to the above arguments, any jQuery/Zepto.ajax options argument | |
| * can be specified as well. |
| /* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011 | |
| * http://benalman.com/ | |
| * Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */ | |
| (function($) { | |
| var o = $({}); | |
| $.subscribe = function() { | |
| o.on.apply(o, arguments); |
| #!/usr/bin/env bash | |
| apt-get -y update | |
| apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev | |
| cd /tmp | |
| wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz | |
| tar -xvzf ruby-1.9.3-p125.tar.gz | |
| cd ruby-1.9.3-p125/ | |
| ./configure --prefix=/usr/local | |
| make | |
| make install |
| var util = require('util'), | |
| exec = require('child_process').exec, | |
| rest = require('restler'); | |
| var alertMe = function(){ | |
| exec('say -v Cellos Bobby, come get your nodejitsu beta'); | |
| }; | |
| var checkSite = function(){ | |
| util.puts('checking if I can get you into the beta yet.'); |
| $.fn.extend | |
| myplugin: (options) -> | |
| self = $.fn.myplugin | |
| opts = $.extend {}, self.default_options, options | |
| $(this).each (i, el) -> | |
| self.init el, opts | |
| self.log el if opts.log | |
| $.extend $.fn.myplugin, | |
| default_options: |
| do ($ = jQuery) -> | |
| $.fn.zebraTable = (options) -> | |
| defaults = | |
| evenColor: '#ccc' | |
| oddColor : '#eee' | |
| options = $.extend(defaults, options) | |
| @each -> | |
| $("tr:even", @).css('background-color', options.evenColor) | |
| $("tr:odd", @).css('background-color', options.oddColor) |
| directory "tmp" | |
| file "tmp/hello.tmp" => "tmp" do | |
| sh "echo 'Hello' > 'tmp/hello.tmp'" | |
| end | |
| task :default => 'morning:turn_off_alarm' | |
| namespace :morning do | |
| desc "Turn off alarm." |
| <?php | |
| /* | |
| * Converts CSV to JSON | |
| * Example uses Google Spreadsheet CSV feed | |
| * csvToArray function I think I found on php.net | |
| */ | |
| header('Content-type: application/json'); | |
| // Set your CSV feed |
| VERSION="1.9.2" | |
| PATCH="180" | |
| DPKG_BUILD_ARCH="$(dpkg --print-architecture)" | |
| set -e | |
| DESTDIR="$(mktemp -d)" | |
| debra create "$DESTDIR" | |
| trap "debra destroy \"$DESTDIR\"" EXIT |