Skip to content

Instantly share code, notes, and snippets.

View jbz's full-sized avatar

J.B. Zimmerman jbz

View GitHub Profile
@jbz
jbz / Contract Killer 3.md
Created July 19, 2018 15:20
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@jbz
jbz / userdata.sh.erb
Created August 2, 2011 20:42
EC2 userdata.sh script to install Chef and register with Chef server
#!/bin/bash
# User data to configure a vanilla Ubuntu EC2 instance.
# Installs chef-client (with minimal dependencies),
# configures chef, and adds roles
test $UID == 0 || (echo "Error: must run as root"; exit 1)
######### STEP 1: OPERATING SYSTEM CONFIGURATION
BOOTLOG="/var/log/bootstrap.log"

Keybase proof

I hereby claim:

  • I am jbz on github.
  • I am jbz (https://keybase.io/jbz) on keybase.
  • I have a public key ASChvAoUO7q1nvU4UgqiM3ftwxlcMjxMbVOwZzGz9AM7iAo

To claim this, I am signing this object:

traceroute to ldc52e.clearspring.com (8.37.70.145), 30 hops max, 60 byte packets
1 ip-10-0-0-0.us-west-1.compute.internal (10.0.0.0) 0.211 ms 0.175 ms 0.167 ms
2 ip-10-0-0-0.us-west-1.compute.internal (10.0.0.0) 0.163 ms 0.129 ms 0.112 ms
3 * * *
4 * * *
5 * * *
6 * * *
7 100.64.78.174 (100.64.78.174) 3.735 ms 100.64.79.134 (100.64.79.134) 0.924 ms 100.64.78.164 (100.64.78.164) 3.689 ms
8 100.64.89.208 (100.64.89.208) 0.416 ms 100.64.91.242 (100.64.91.242) 0.393 ms 100.64.92.50 (100.64.92.50) 0.425 ms
9 100.64.200.49 (100.64.200.49) 9.027 ms 100.64.200.35 (100.64.200.35) 17.626 ms 100.64.200.19 (100.64.200.19) 1.345 ms
directories = %w( /dir/one /dir/two /dir/three )
directories.each do |dir|
directory dir do
owner "foo"
mode 0755
end
end
line = '127.0.0.1 gateway.internal gateway'
file = Chef::Util::FileEdit.new('/etc/hosts')
file.insert_line_if_no_match(/#{line}/, line)
file.write_file
@jbz
jbz / gist:2219134
Created March 27, 2012 18:51
Microwaving
[microwaving]
Microwaving is an action applying to one thing.
Understand "microwave [something]" as microwaving.
Understand "cook [something]" as microwaving.
Understand "heat [something]" as microwaving.
Understand "reheat [something]" as microwaving.
Check microwaving:
Unless the microwave oven is in the location, say "How do you propose to do that?" instead;
Unless the microwave is empty:
@jbz
jbz / gist:1975112
Created March 4, 2012 22:22
Combine test
"test" by "custo"
Combining it with is an action applying to two carried things.
Understand "combine [something] and [something]" as combining it with.
Understand "combine [something] with [something]" as combining it with.
Understand the command "attach" as something new. Understand "attach [something] to [something]" as combining it with.
The combining it with action has an object called the item built.
Setting action variables for combining something with something:
@jbz
jbz / gist:1943859
Created February 29, 2012 19:39
Microwaving
[microwaving]
Microwaving is an action applying to one thing.
Understand "microwave [something]" as microwaving.
Understand "cook [something]" as microwaving.
Understand "heat [something]" as microwaving.
Understand "reheat [something]" as microwaving.
Check microwaving:
Unless the microwave oven is in the location, say "How do you propose to do that?" instead;
Unless the microwave is empty:
@jbz
jbz / gist:1911631
Created February 25, 2012 23:28
Los Angeles Class Inform Layout
"SubMap" by "The Custodian"
When play begins, say "Welcome to a super-sketchy notional Los Angeles Class attack submarine, the USS Aardvark!"
Chapter 0 - Setup
Forward is a direction. The opposite of forward is aft.
Index map with Forward mapped as east.
Aft is a direction. The opposite of aft is forward.
Index map with aft mapped as west.