Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

darron froese darron

🎯
Focusing
View GitHub Profile
@darron
darron / gist:8745145
Created January 31, 2014 23:07
Three builds on 3 separate clouds.
View gist:8745145
==> Builds finished. The artifacts of successful builds are:
--> digitalocean: A snapshot was created: 'octohost-chef 1391208671' in region 'New York 1'
--> amazon-ebs: AMIs were created:
us-west-2: ami-063e5d36
--> openstack: An image was created: 34017492-62ca-4bf0-9600-f97053523b2e
View gist:8763610
Another different gist.
@darron
darron / gist:8920658
Created February 10, 2014 17:44
ab speed test of standard docker container
View gist:8920658
Benchmarking 0.0.0.0 (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
@darron
darron / gist:9474868
Created March 10, 2014 21:34
Docker 0.9 errors.
View gist:9474868
2014/03/10 21:22:44 The command [/bin/sh -c mkdir /srv/www] returned a non-zero code: -1
2014/03/10 21:23:05 The command [/bin/sh -c pip install -r requirements.txt] returned a non-zero code: -1
2014/03/10 21:25:11 The command [/bin/sh -c gem install sass bourbon --no-ri --no-rdoc] returned a non-zero code: -1
2014/03/10 21:25:33 The command [/bin/sh -c npm install] returned a non-zero code: -1
2014/03/10 21:25:33 The command [/bin/sh -c npm install harp -g] returned a non-zero code: -1
2014/03/10 21:26:20 The command [/bin/sh -c harp compile] returned a non-zero code: -1
2014/03/10 21:26:20 The command [/bin/sh -c npm install harp -g] returned a non-zero code: -1
2014/03/10 21:26:22 The command [/bin/sh -c npm install hexo -g] returned a non-zero code: -1
2014/03/10 21:28:20 The command [/bin/sh -c jekyll build] returned a non-zero code: -1
2014/03/10 21:28:25 The command [/bin/sh -c cd /srv/www; npm install] returned a non-zero code: -1
@darron
darron / gist:9470489
Last active August 29, 2015 13:57
Adding configurable environment variables to octohost. Inserted into the running container on deploy.
View gist:9470489
octohost:/home/git# octo config canary
/canary/SESSION_SECRET:long-random-looking-string-that-will-not-be-posted
/canary/SENDGRID_PASSWORD:not-the-password
/canary/SENDGRID_USERNAME:not-the-username@example.com
/canary/EMAIL_DESTINATION:not-the-email-address@example.com
/canary/RACK_ENV:production
/canary/LANG:en_US.UTF-8
/canary/BASE_CANARY_PATH:octo
octohost:/home/git# octo config:set canary/TESTING "This is only a test."
This is only a test.
@darron
darron / gist:9591665
Created March 16, 2014 23:58
How I create new cookbooks: `newcook $name`
View gist:9591665
newcook() {
if [ $1 ] ; then
git clone https://github.com/darron/skeleton-cookbook.git $1-cookbook
cd $1-cookbook; rm -rf .git/
egrep -r "skeleton" * .kitchen.yml | cut -d ':' -f 1 | sort | uniq | xargs -n 1 sed -i '' "s/skeleton/$1/g"
git clone https://github.com/customink-webops/foodcritic-rules foodcritic/customink && rm -rf foodcritic/customink/.git
git clone https://github.com/etsy/foodcritic-rules foodcritic/etsy && rm -rf foodcritic/etsy/.git
git init . && git add . && git commit -a -m 'First commit.'
else
echo "Need the name of the cookbook."
View keybase.md

Keybase proof

I hereby claim:

  • I am darron on github.
  • I am darron (https://keybase.io/darron) on keybase.
  • I have a public key whose fingerprint is 9B90 C6FA 8137 6CBD 269F FF8E 84D4 A686 885D C772

To claim this, I am signing this object:

View Gemfile.lock
GEM
remote: http://rubygems.org/
specs:
activesupport (4.0.4)
i18n (~> 0.6, >= 0.6.9)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
byebug (2.7.0)
View Gemfile
# If you have OpenSSL installed, we recommend updating
# the following line to use "https"
source 'http://rubygems.org'
gem 'therubyracer'
gem "middleman", "~>3.3.2"
# Live-reloading plugin
gem "middleman-livereload", "~> 3.1.0"