Skip to content

Instantly share code, notes, and snippets.

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@miles
miles / about_those_lava_lamps.md
Created December 13, 2015 02:53 — forked from marick/about_those_lava_lamps.md
About Those Lava Lamps

Around 2006-2007, it was a bit of a fashion to hook lava lamps up to the build server. Normally, the green lava lamp would be on, but if the build failed, it would turn off and the red lava lamp would turn on.

By coincidence, I've actually met, about that time, (probably) the first person to hook up a lava lamp to a build server. It was Alberto Savoia, who'd founded a testing tools company (that did some very interesting things around generative testing that have basically never been noticed). Alberto had noticed that people did not react with any urgency when the build broke. They'd check in broken code and go off to something else, only reacting to the breakage they'd caused when some other programmer pulled the change and had problems.

@miles
miles / gist:1e0901cedc71faa616e7
Last active August 27, 2015 21:33
Setup New OSX Machine
#!/bin/bash
# Run on each machine I have access to as a new user. Don't like Apple's nanny attitude on how my
# computer should behave. Do it my way OSX! You're here to serve me, not the other way around.
#
# Thank you Ryan Davis for the inspiration for this https://gist.github.com/zenspider/7004934
#
# Compatible with OSX 10.10. See http://www.defaults-write.com/tag/10-10/
# Miles Forrest <miles@coderpath.com>
# Changing the Dock
@miles
miles / cascadia_sponsors.txt
Created August 11, 2014 16:39
Cascadia Sponsors
#Supporting Sponsors
Adamantium
0 New Relic @newrelic
Gold Sponsors
0 CrowdCompass @CrowdCompass
0 Esri @Esri
0 Goldstar @goldstar
0 LivingSocial @LivingSocial
@miles
miles / latency.txt
Created May 31, 2012 14:19 — forked from jboner/latency.txt
Latency numbers every programmer should know
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns
Mutex lock/unlock 25 ns
Main memory reference 100 ns
Compress 1K bytes with Zippy 3,000 ns
Send 2K bytes over 1 Gbps network 20,000 ns
Read 1 MB sequentially from memory 250,000 ns
Round trip within same datacenter 500,000 ns
Disk seek 10,000,000 ns
@miles
miles / hack.sh
Created March 31, 2012 21:41 — forked from erikh/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
#
@miles
miles / gist:1276125
Created October 10, 2011 18:36 — forked from javan/gist:1168475
Fix iPhone home button
Found this tip in comment here: http://www.tipb.com/2011/01/04/tipb-bug-home-button-working-iphone/
1.) Open any application
2.) Press and hold the power button until the slide to shutdown swipe bar appears.
3.) Release Power button
4.) Press and hold Home button Lightly
until screen returns to icon screen
@miles
miles / acey_ducey.rb
Created July 21, 2011 03:22
Acey Ducey Game
#!/usr/bin/env ruby -wKU
class MyCard
attr_reader :value, :facevalue
def initialize
@value = rand(13)+2
case
when @value == 11
@facevalue = "Jack"
@miles
miles / application.html.erb
Created January 19, 2011 20:33 — forked from ryanb/application.html.erb
RyanB's super simple Rails authentication example
<!-- layout file -->
<% if current_user %>
Welcome <%= current_user.username %>. Not you? <%= link_to "Log out", logout_path %>
<% else %>
<%= link_to "Sign up", signup_path %> or <%= link_to "log in", login_path %>.
<% end %>
@miles
miles / .gitignore
Created December 7, 2010 19:38
augmented .gitignore file from Rails Tutorial
.bundle
db/*.sqlite3*
log/*.log
*.log
tmp/**/*
tmp/*
Gemfile.lock
doc/api
doc/app
*.swp