Skip to content

Instantly share code, notes, and snippets.

View mhodgson's full-sized avatar

Matt Hodgson mhodgson

  • Vendr
  • Boston, MA
View GitHub Profile
@mhodgson
mhodgson / gist:9006859
Last active August 29, 2015 13:56
Rugged Merge Conflict Example
require 'rugged'
repo = Rugged::Repository.init_at('./test-repo')
index = repo.index
base_commit_options = {
author: { name: "Matt", email: "matt@test.com" },
committer: { name: "Matt", email: "matt@test.com" },
update_ref: 'HEAD'
Verifying myself: My Bitcoin username is +hodgie. https://onename.io/hodgie
#!/bin/bash
if [ -z "${SAUCE_USERNAME}" ] || [ -z "${SAUCE_ACCESS_KEY}" ]; then
echo "This script can't run without your Sauce credentials"
echo "Please set SAUCE_USERNAME and SAUCE_ACCESS_KEY env variables"
echo "export SAUCE_USERNAME=ur-username"
echo "export SAUCE_ACCESS_KEY=ur-access-key"
exit 1
fi
SAUCE_TMP_DIR="$(mktemp -d -t sc.XXXX)"
@mhodgson
mhodgson / app.js
Last active August 29, 2015 14:21 — forked from ericdfields/app.js
import Flux from 'path/to/flux.js'
window.MyApp.flux = new Flux()
#!/bin/bash
# Setup and start BrowserStack Tunnel for your TravisCI build
#
# This script was adopted from Santiago Suarez Ordoñez's Sauce Connect
# setup script: https://gist.github.com/santiycr/5139565/
#
# This script requires your .travis.yml to include the following private
# env variable:
#
@mhodgson
mhodgson / default.rb
Created August 30, 2010 17:12 — forked from survival/default.rb
Updated for Rails 3 and Bundler
#
# Cookbook Name:: delayed_job
# Recipe:: default
#
if ['solo', 'app', 'app_master'].include?(node[:instance_role])
# be sure to replace "app_name" with the name of your application.
run_for_app("maloca") do |app_name, data|
@mhodgson
mhodgson / dabblet.css
Created July 12, 2012 18:42 — forked from afraser/dabblet.css
Boundless Plus v2 layout
/* Boundless Plus v2 layout */
body {
margin: 0;
background-color: #333;
height: 100%;
max-height: 100%;
}
header{
height: 100%;
max-height: 100%;
@mhodgson
mhodgson / dabblet.css
Created July 12, 2012 19:24
Boundless Plus v2 layout
/* Boundless Plus v2 layout */
html {
height: 100%;
max-height: 100%;
}
body {
margin: 0;
background-color: #333;
height: 100%;
max-height: 100%;
@mhodgson
mhodgson / dabblet.css
Created July 13, 2012 13:45
Boundless Plus v2 layout
/* Boundless Plus v2 layout */
html {
height: 100%;
max-height: 100%;
}
body {
margin: 0;
background-color: #333;
height: 100%;
max-height: 100%;
@mhodgson
mhodgson / dabblet.css
Created July 13, 2012 13:45
Boundless Plus v2 layout - Hodgie
/* Boundless Plus v2 layout - Hodgie */
html {
height: 100%;
max-height: 100%;
}
body {
margin: 0;
background-color: #333;
height: 100%;
max-height: 100%;