Instantly share code, notes, and snippets.

View sshpass.rb
require 'formula'
class Sshpass < Formula
url 'http://sourceforge.net/projects/sshpass/files/sshpass/1.05/sshpass-1.05.tar.gz'
homepage 'http://sourceforge.net/projects/sshpass'
sha256 'c3f78752a68a0c3f62efb3332cceea0c8a1f04f7cf6b46e00ec0c3000bc8483e'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
View thing.vim
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'Solarized'
Plugin 'SuperTab'
View my_instacart.json
{"meta":{"code":200},"data":[{"id":235681245,"credit_id":351968,"address_id":71838242,"delivery_date":null,"user_id":9283,"charge_id":"ch_6hP6yk4XenlVrE","created_at":"2015-07-29T19:32:55.237Z","updated_at":"2015-07-29T21:01:26.217Z","total":"46.34","shipping_price":"0.0","receipt_sent_at":"2015-07-29T20:54:13.494Z","refund_amount":"0.0","refund_processed_at":null,"special_instructions":"ring doorbell number 1 with no name","subtotal":"40.3","coupon_discount":{"fractional":"0.0","currency":{"id":"usd","alternate_symbols":["US$"],"decimal_mark":".","disambiguate_symbol":null,"html_entity":"$","iso_code":"USD","iso_numeric":"840","name":"United States Dollar","priority":1,"smallest_denomination":1,"subunit":"Cent","subunit_to_unit":100,"symbol":"$","symbol_first":true,"thousands_separator":","},"bank":{"rounding_method":null,"rates":{},"mutex":{}}},"charge_amount":"46.34","canceled_at":null,"canceled_sent_at":null,"route_order":null,"refund_reason":null,"refund_special_message":null,"duplicate_of_id":null,"admi
View .spacemacs
;; -*- mode: dotspacemacs -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (ie. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
View chef-standards
Prior art
===========
Cookbook style guides
---------------------
* https://github.com/ampledata/cookbook-style-guide
* https://github.com/infochimps-labs/ironfan/wiki/style_guide
* https://github.com/secondmarket/chef-style-guide
* http://acrmp.github.io/foodcritic/
View gist:eaaa44606d9f8ea2ce6e
require 'serverspec'
include Serverspec::Helper::Exec
include Serverspec::Helper::DetectOS
describe 'resolve assigned host name to an ipaddress' do
describe host('test-node') do
it { should be_resolvable.by('hosts') }
end
end
View gist:ead8699a26ccd6c4b499
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
#Hygene
guard "foodcritic", :cookbook_paths => ".", :all_on_start => false do
watch(%r{attributes/.+\.rb$})
watch(%r{providers/.+\.rb$})
watch(%r{recipes/.+\.rb$})
watch(%r{resources/.+\.rb$})
watch(%r{^templates/(.+)})
View CSI Setup
Goal
------
Set up a dynamic, scalable, sutainable application stack using ansible.
Components
----------------
* Web application (Bitcoin metrics thing in a few langs)
* Postgres (Database) http://www.postgresql.org/
* Consul (Dynamic DNS and config store) http://www.consul.io/
View Simple app Instructions
Goal
------
Set up a dynamic, scalable, sutainable application stack using ansible.
Components
----------------
* Web application (Bitcoin metrics thing in a few langs)
* Postgres (Database) http://www.postgresql.org/
* Consul (Dynamic DNS and config store) http://www.consul.io/
View gist:9772467
### Keybase proof
I hereby claim:
* I am ericfode on github.
* I am ericfode (https://keybase.io/ericfode) on keybase.
* I have a public key whose fingerprint is 6E42 8EB1 C12B 969F 8805 3AAB 2FD2 8F66 343F 1F3F
To claim this, I am signing this object: