Skip to content

Instantly share code, notes, and snippets.

Avatar

J.B. Zimmerman jbz

View GitHub Profile
@jbz
jbz / Contract Killer 3.md
Created Jul 19, 2018 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer 3.md

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

View keybase.md

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:

View gist:ae96269e139bf15f769e0970d3d0d1fd
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
View gist:9115697
%w{ package1 package2 package3 }.each do |pkg|
package pkg do
action :install
end
end
View gist:8828730
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
View gist:6687362
directories = %w( /dir/one /dir/two /dir/three )
directories.each do |dir|
directory dir do
owner "foo"
mode 0755
end
end
View chef-insert-line-if-no-match.rb
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
View gist:2219134
[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:
View gist:1975112
"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:
View gist:1943859
[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: