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 / 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%;
@mhodgson
mhodgson / sauce_connect_setup.sh
Last active February 23, 2017 20:46
Custom Sauce Labs / Travis CI Integration
#!/bin/bash
# Setup and start Sauce Connect for your TravisCI build
# This script requires your .travis.yml to include the following two private env variables:
# SAUCE_USERNAME
# SAUCE_ACCESS_KEY
# Follow the steps at https://saucelabs.com/opensource/travis to set that up.
#
# Curl and run this script as part of your .travis.yml before_script section:
# before_script:
#!/bin/bash
# Setup and start TEstingBot for your TravisCI build
# This script requires your .travis.yml to include the following two private env variables:
# TESTINGBOT_KEY
# TESTINGBOT_SECRET
# Follow the steps at http://blog.testingbot.com/2012/12/31/travis-ci-selenium-testing-with-testingbot to set that up.
#
# Curl and run this script as part of your .travis.yml before_script section:
# before_script:
@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)"