Skip to content

Instantly share code, notes, and snippets.

View gabebw's full-sized avatar

Gabe Berke-Williams gabebw

View GitHub Profile
@jamis
jamis / Easy Marshmallow Recipe
Created December 10, 2009 22:38
Easy Gourmet Marshmallows
EASY MARSHMALLOWS
-----------------
Marshmallows are perhaps one of the simplest confections you can make. They only
require a handful of ingredients, a batch can be thrown together in 10-15 minutes
(plus *cough* 3 hours for them to set), and you can flavor them however you like.
(You haven't LIVED until you've had coconut marshmallows!)
Hardware needed:
@jnrbsn
jnrbsn / better-gist-styles.css
Created September 14, 2010 01:24
Better styles for embedding GitHub Gists
/* Better styles for embedding GitHub Gists */
.gist{font-size:13px;line-height:18px;margin-bottom:20px;width:100%}
.gist pre{font-family:Menlo,Monaco,'Bitstream Vera Sans Mono','Courier New',monospace !important}
.gist-meta{font-family:Helvetica,Arial,sans-serif;font-size:13px !important}
.gist-meta a{color:#26a !important;text-decoration:none}
.gist-meta a:hover{color:#0e4071 !important}
@jferris
jferris / Gemfile
Created September 13, 2011 19:02
Guard setup for spork, passenger, and bundler
group :development, :test do
gem "spork", "~> 0.9.0.rc"
gem "guard"
gem "guard-spork"
gem "guard-bundler"
gem "guard-passenger"
gem "rb-fsevent", :require => false
gem "growl", :require => false
@gabebw
gabebw / maximum_battery_life.md
Created March 20, 2012 20:04 — forked from mrflip/maximum_battery_life.md
maximum battery life checklist -- use before a long plane flight

Max Battery Life Checklist

Here is a checklist to follow if you want maximum battery life -- for instance if you're about to get on a long plane flight.

10 hour battery life on a non-SSD Macbook Pro 17"

Low power use checklist

With power connected:

@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@gabebw
gabebw / vim.rb
Created April 7, 2012 20:30 — forked from joshuaclayton/gist:790173
Vim Formula for Homebrew
require 'formula'
class Vim < Formula
# Get stable versions from hg repo instead of downloading an increasing
# number of separate patches.
url 'https://vim.googlecode.com/hg/', :revision => 'v7-3-712'
version '7.3.712'
homepage 'http://www.vim.org/'
head 'https://vim.googlecode.com/hg/'
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

  • 1 1/3 lb grass-fed beef
  • 2 tbsp Worcestershire sauce
  • 3/4 tsp ground coriander seed
  • 1/2 tsp garlic powder
  • 1/4 tsp ground cumin
  • 4 tbsp softened butter
  • 1/2 tsp freshly ground pepper
  • 1/2 tsp freshly ground sea salt
  • 4 pieces of fresh cheese (Muenster or sharp cheddar are best)
@harlow
harlow / merge_pull_requests.md
Created October 26, 2012 19:10
Steps to accepting pull requests from open source contributors

Add contributors pull requests to your origin remote

# .git/config
[remote "origin"]
  fetch = +refs/heads/*:refs/remotes/origin/*
  fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
  url = git@github.com:thoughtbot/[repo].git

Fetch and checkout the remote branch. Run bundle to make sure any new dependencies are installed.

#!/usr/bin/env bash
#
# Wraps curl with a custom-drawn progress bar. Use it just like curl:
#
# $ curl-progress -O http://example.com/file.tar.gz
# $ curl-progress http://example.com/file.tar.gz > file.tar.gz
#
# All arguments to the program are passed directly to curl. Define your
# custom progress bar in the `print_progress` function.
#