Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
// from: http://jsfiddle.net/SubtleGradient/Qfawx/ | |
// copied here only because "gists" are slightly easier for me to read | |
// classic (oldschool) | |
(function(){/*IIFE*/})(); | |
// new standard | |
(function(){/*IIFE*/}()); | |
// lol, square |
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
######################################################################################## | |
# function for generating a git.io short url | |
######################################################################################## | |
function git-shorturl { | |
curl -i http://git.io -F "url=$1" 2>/dev/null | grep -i "location:" | |
} |
#!/bin/sh | |
# filelock - A flexible file-locking mechanism. | |
retries="10" # default number of retries | |
action="lock" # default action | |
nullcmd="/bin/true" # null command for lockfile | |
while getopts "lur:" opt; do | |
case $opt in | |
l ) action="lock" ;; | |
u ) action="unlock" ;; | |
r ) retries="$OPTARG" ;; |
/* | |
A simple new-line delimited JSON protocol with upgrades. | |
Receiving Usage: | |
protocol = require('./frame-protocol'); | |
// parsing data | |
parser = protocol.Parser(); |
require 'formula' | |
class Phantomjs < Formula | |
url "https://phantomjs.googlecode.com/files/phantomjs-1.4.1-macosx-static-x86.zip" | |
homepage 'http://www.phantomjs.org/' | |
sha1 "416ea14ac2f9d12c3b382d169987c3829017dea8" | |
def install | |
system "qmake -spec macx-g++" | |
system "make" |
# Cookbook Name:: mongodb | |
# Recipe:: default | |
case node['platform'] | |
when "ubuntu" | |
execute "apt-get update" do | |
action :nothing | |
end | |
execute "add gpg key" do |
require 'formula' | |
class S3dd < Formula | |
head 'https://github.com/Net-Results/s3dd.git' | |
homepage 'https://github.com/Net-Results/s3dd' | |
def install | |
system "chmod a+x s3dd" | |
system "mkdir -p #{prefix}/bin" | |
system "cp s3dd #{prefix}/bin" |