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 — forked from malarkey/Contract Killer 3.md
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

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
%w{ package1 package2 package3 }.each do |pkg|
package pkg do
action :install
end
end
license_file_contents = NIL
if Chef::DataBag.list.key?('pmta_licenses')
Chef::Log.warn("Found pmta_licenses data bag...")
begin
license_file_contents = data_bag_item("pmta_licenses", node['hostname'])['license']
Chef::Log.warn("found hostname license in data bag...")
file "/etc/pmta/license" do
owner 'pmta'
group 'pmta'
mode 0640
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: