Skip to content

Instantly share code, notes, and snippets.

View jhulten's full-sized avatar

Jeffrey Hulten jhulten

View GitHub Profile
terraform {
backend "local" {
path = "./terraform_test.tfstate"
}
}
provider "aws" {
skip_credentials_validation = true
skip_requesting_account_id = true
skip_get_ec2_platforms = true
Verifying my Blockstack ID is secured with the address 1BwPbwBWswq5RtjT51uPgNAQ3BUcSc4jwu https://explorer.blockstack.org/address/1BwPbwBWswq5RtjT51uPgNAQ3BUcSc4jwu
Verifying that +jhulten is my blockchain ID. https://onename.com/jhulten
[debug] api.go:985 Calling GET /images/json
2013/08/28 16:40:30 GET /v1.4/images/json
[debug] api.go:985 Calling POST /containers/create
2013/08/28 16:41:39 POST /v1.4/containers/create
[debug] api.go:985 Calling POST /containers/{name:.*}/start
2013/08/28 16:41:39 POST /v1.4/containers/71659d36a6fc/start
[debug] container.go:852 Waiting for process
[debug] api.go:985 Calling POST /containers/{name:.*}/attach
2013/08/28 16:41:39 POST /v1.4/containers/71659d36a6fc/attach?logs=1&stderr=1&stdout=1&stream=1
[debug] container.go:448 [start] attach stdout
@jhulten
jhulten / gist:5505837
Created May 2, 2013 22:06
git aliases
[alias]
ci = commit
co = checkout
st = status
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
tree = log --oneline --decorate --graph
ctags = !.git/hooks/ctags
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
@jhulten
jhulten / ~__.bundler_config
Created February 22, 2013 01:12
bundler config
---
BUNDLE_PATH: vendor/bundle
BUNDLE_DISABLE_SHARED_GEMS: "1"
@jhulten
jhulten / server.clj
Created May 26, 2012 06:09
clojure udp aleph example
(ns statsd-clj.server
(:use [aleph.udp]
[gloss core io]
[lamina core api])
(:require [statsd-clj.config :as config]
[statsd-clj.metrics :as metrics]
[clojure.tools.logging :as log]))
(def socket-server (agent nil))
@jhulten
jhulten / deployment.rb
Created November 3, 2011 19:32
airbrake block
execute "notify airbrake" do
command %Q[bundle exec rake airbrake:deploy TO=#{deploy_environment} REVISION=`git log --pretty=format:'%h' -n 1` REPO=#{repository} USER=chef >> /tmp/airbrake.log]
user node.default_user
group node.default_group
end
@jhulten
jhulten / knife.rb
Created August 15, 2011 22:44
general knife.rb for a repo
current_dir = File.dirname(__FILE__)
ORG = "my_hosted_chef_org"
log_level :info
log_location STDOUT
node_name "#{ENV['USER']}"
client_key "#{current_dir}/#{ENV['USER']}.pem"
validation_client_name "#{ORG}-validator"
validation_key "#{current_dir}/#{ORG}-validator.pem"
chef_server_url "https://api.opscode.com/organizations/#{ORG}"
@jhulten
jhulten / knife.rb
Created February 16, 2011 22:55 — forked from jbz/knife.rb
# This knife.rb orig. provided by jtimberman@opscode.com - but any mistakes are mine!
current_dir = File.dirname(__FILE__)
platform = "https://api.opscode.com/organizations"
require 'grit'
branch = Grit::Repo.new("#{current_dir}/..").head.name
case branch