Skip to content

Instantly share code, notes, and snippets.

FROM ubuntu:precise
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update
RUN apt-get -y install git build-essential python-software-properties automake curl
# Install RVM
RUN curl -L https://get.rvm.io | bash -s stable
@tristanoneil
tristanoneil / harvest
Created October 24, 2013 13:37
How to override Harvest for Mac time settings.
For AppStore apps:
defaults write com.getharvest.harvestxapp TimeFormat hours_minutes
defaults write com.getharvest.harvestxapp TimeFormat decimal
defaults write com.getharvest.harvestxapp TimeFormat server
For apps downloaded directly from GetHarvest:
defaults write ~/Library/Preferences/com.getharvest.harvestx.plist TimeFormat hours_minutes
defaults write ~/Library/Preferences/com.getharvest.harvestx.plist TimeFormat decimal
@tristanoneil
tristanoneil / gist:4254668
Created December 11, 2012 00:32
.gitconfig
[user]
email = tristanoneil@gmail.com
name = Tristan O'Neil
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
$ ->
$("div.contacts form").live "ajax:success", ->
$.get window.pathname, (data) =>
$(this).closest("div.contacts").replaceWith $(data).find("div.contacts")
@tristanoneil
tristanoneil / gist:4233841
Created December 7, 2012 15:09
Sublime Key Bindings
[
{ "keys": ["command+shift+."], "command": "erb" },
{ "keys": ["super+shift+l"], "command": "expand_selection", "args": {"to": "line"} },
{ "keys": ["super+shift+v"], "command": "paste" },
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["super+alt+f"], "command": "show_panel", "args": {"panel": "find"} },
{ "keys": ["super+f"], "command": "show_panel", "args": {"panel": "replace"} }
]
@tristanoneil
tristanoneil / gist:4233840
Created December 7, 2012 15:08
Sublime Settings
{
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"create_window_at_startup": false,
"draw_white_space": "all",
"hot_exit": false,
"ignored_packages":
[
"Vintage"
],
"remember_open_files": false,
@tristanoneil
tristanoneil / gist:4229885
Created December 7, 2012 01:03
Happy Hoppy Brown Ale
Original Gravity: 1.055
Final Gravity: 1.014
Primary: ~67 Degrees F 12 days
Secondary: 2 Weeks w/ 1 ounce of Whole Leaf Cascade
IBU: 40
Yeast: Wyeast 1332
9.0 lbs Pale Malt
1.0 lbs Crystal 60L
class RepoController < UIViewController
def viewDidLoad
@data = []
BW::HTTP.get("https://api.github.com/users/gristmill/repos") do |response|
json = BW::JSON.parse(response.body.to_str)
json.each do |j|
@data << { name: j["full_name"], watchers: j["watchers_count"] }
end