Skip to content

Instantly share code, notes, and snippets.

View elijah's full-sized avatar
🦊

Elijah Wright elijah

🦊
View GitHub Profile
@elijah
elijah / stacktrace
Created March 21, 2018 20:25
stacktrace encountered on running latest chef docker cookbook
Generated at 2018-03-21 15:15:44 -0500
NoMethodError: undefined method `v' for DockerCookbook::DockerContainer
/var/lib/gems/2.3.0/gems/chef-13.6.4/lib/chef/resource.rb:1297:in `method_missing'
/home/elw/chef-solo/local-mode-cache/cache/cookbooks/docker/libraries/docker_container.rb:46:in `block in <class:DockerContainer>'
/var/lib/gems/2.3.0/gems/chef-13.6.4/lib/chef/property.rb:648:in `instance_exec'
/var/lib/gems/2.3.0/gems/chef-13.6.4/lib/chef/property.rb:648:in `exec_in_resource'
/var/lib/gems/2.3.0/gems/chef-13.6.4/lib/chef/property.rb:447:in `coerce'
/var/lib/gems/2.3.0/gems/chef-13.6.4/lib/chef/property.rb:676:in `coerce_and_validate'
/var/lib/gems/2.3.0/gems/chef-13.6.4/lib/chef/property.rb:658:in `input_to_stored_value'
/var/lib/gems/2.3.0/gems/chef-13.6.4/lib/chef/property.rb:350:in `get'
#!python
"""Bootstrap distribute installation
If you want to use setuptools in your package's setup.py, just include this
file in the same directory with it, and add this to the top of your setup.py::
from distribute_setup import use_setuptools
use_setuptools()
If you want to require a specific version of setuptools, set a download
@elijah
elijah / keybase.md
Created March 11, 2014 15:40
keybase.md

Keybase proof

I hereby claim:

  • I am elijah on github.
  • I am elijah (https://keybase.io/elijah) on keybase.
  • I have a public key whose fingerprint is DDA4 64DF 734A D996 C0C9 C371 A30C F613 39FA 6421

To claim this, I am signing this object:

@elijah
elijah / consume_json.rb
Created September 29, 2012 22:38 — forked from andreacampi/consume_json.rb
cookbooks/consume_json/libraries/consume_json.rb
class Chef
module Mixin
module ConsumeJson
def consume_json(url)
Chef::Log.debug "consume_json: requesting url: #{url}"
info = nil
fetch(url) do |data|
info = JSON.parse(data)
Chef::Log.debug "consume_json: parsed: #{info.inspect}"
@elijah
elijah / mountain-lion-brew-setup.markdown
Created July 26, 2012 16:25 — forked from myobie/mountain-lion-brew-setup.markdown
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

BEGIN {
lastUrl = "";
performanceHistory[1] = 0;
hitCount = 0;
total = 0;
print "Page\tCount\t95th\tAverage";
}
function EraseData()
{
== Rules ==
On Infrastructure
-----------------
There is one system, not a collection of systems.
The desired state of the system should be a known quantity.
The "known quantity" must be machine parseable.
The actual state of the system must self-correct to the desired state.
The only authoritative source for the actual state of the system is the system.
The entire system must be deployable using source media and text files.
@elijah
elijah / gist:1856198
Created February 17, 2012 23:33 — forked from mcavage/gist:1856186
stopmachine.sh
#!/bin/bash
# Globals
#export SDC_CLI_URL=https://us-west-1.api.joyentcloud.com
#export SDC_CLI_ACCOUNT=mark.cavage
#export SDC_CLI_KEY_ID=id_rsa
@elijah
elijah / sync_things.rb
Created May 24, 2011 20:18 — forked from tswicegood/sync_things.rb
Simple Ruby script to sync Basecamp and Things to-dos.
#!/usr/bin/env ruby
#
# Biggest problem with this is that it checks everything. Needs
# to be adjusted to only check N days and/or N tasks on Basecamp.
#
# Also has a problem in that Completed always wins. If you have a
# task marked at completed, then mark it as open again on just one
# side, it'll mark the other as completed if you run the sync again.
#
# All that said, it provides a basic, very rudimentary sync.
@elijah
elijah / sync_things.rb
Created May 24, 2011 20:18 — forked from tswicegood/sync_things.rb
Simple Ruby script to sync Basecamp and Things to-dos.
#!/usr/bin/env ruby
#
# Biggest problem with this is that it checks everything. Needs
# to be adjusted to only check N days and/or N tasks on Basecamp.
#
# Also has a problem in that Completed always wins. If you have a
# task marked at completed, then mark it as open again on just one
# side, it'll mark the other as completed if you run the sync again.
#
# All that said, it provides a basic, very rudimentary sync.