Skip to content

Instantly share code, notes, and snippets.

View webframp's full-sized avatar

Sean Escriva webframp

View GitHub Profile
@bryanwb
bryanwb / gist:2225015
Created March 28, 2012 09:25
fun with shef and pry
check out pry screencast here http://pry.github.com/screencasts.html
install pry
$ gem install pry pry-doc
start shef
$ shef
# load pry
chef> require 'pry'
@jtimberman
jtimberman / base.rb
Created April 23, 2012 20:00
Base role applied to all nodes with the power of Ruby.
# via Jay Feldblum on chef@lists.opscode.com:
name "base"
description "Base role applied to all nodes."
all = [
"recipe[apt]",
"recipe[build-essential]",
"recipe[git]",
"recipe[zsh]",
@ahoward
ahoward / dsl.rb
Created November 8, 2012 18:45
this is how to build dsls that don't fuck the global namespace
# the entire concept of building a dsl means defining domain terms on an
# object, it's so much simpler to start with the dsl itself being a blank
# slate that simply relays certain methods to a scope
#
class DSL
instance_methods.each do |m|
undef_method m unless m[%r/\A__|\Aobject_id\Z/]
end
@webframp
webframp / shokunin.md
Created November 13, 2012 21:49
Shokunin

“The Japanese word shokunin is defined by both Japanese and Japanese-English dictionaries as ‘craftsman’ or ‘artisan’, but such a literal description does not fully express the deeper meaning. The Japanese apprentice is taught that shokunin means not only having technical skill, but also implies an attitude and social consciousness. These qualities are encompassed in the word shokunin, but are seldom written down . . . . The shokunin demonstrates knowledge of tools and skills with them, the ability to create beauty and the capacity to work with incredible speed . . . . The shokunin has a social obligation to work his/her best for the general welfare of the people. This obligation is both spiritual and material, in that no matter what it is, the shokunin’s responsibility is to fulfill the requirement.”

@jtimberman
jtimberman / tk-jamie.rb
Created January 28, 2013 06:57
Simple converter for Kitchenfile -> .jamie.yml. See comments. May open a rift in the space-time continuum.
#!/usr/bin/env ruby
#
# Converts a test-kitchen Kitchenfile to a jamie-ci .jamie.yml. Writes
# out the .jamie.yml file. Once Test Kitchen 1.0 is ready, this file
# will be renamed to .kitchen.yml.
#
# Must be run from a cookbook directory that has been setup with Test
# Kitchen (./test/kitchen/Kitchenfile exists).
#
# Bugs:
# basic settings
set -g default-terminal "screen-256color"
#set -g default-terminal "xterm-256color"
setw -g xterm-keys on
set -g base-index 1
set -s escape-time 0
setw -g mode-mouse off
set -g default-command "reattach-to-user-namespace -l zsh"
# bindings
Vagrant::Config.run do |config|
config.vm.box = "sandbox"
config.vm.box_url = "http://repos.sensuapp.org/box/sandbox.box"
config.vm.forward_port 4567, 4567
config.vm.forward_port 8080, 8080
end
@jasonm23
jasonm23 / powerline.el
Created June 17, 2012 18:03
Powerline fancy statusline
;;; mainline.el --- modeline replacement forked from powerline.el
;; Author: Jason Milkins
;; Version: 1.0.2
;; Keywords: statusline / modeline
;;; Changelog:
;; 1.0.1 : added additional xpm shape chamfer14, adjusted chamfer xpm.
;; : mainline-color1, mainline-color2, mainline-arrow-shape
@distransient
distransient / Config.ini
Created June 24, 2015 01:06
bug.n solarized color theme
Config_backColor_#1=eee8d5;eee8d5;eee8d5;eee8d5;eee8d5;eee8d5;eee8d5;eee8d5;eee8d5
Config_backColor_#2=073642;;;;;;;eee8d5;eee8d5
Config_backColor_#3=;;;;;;;eee8d5;
Config_foreColor_#1=268bd2;eee8d5;eee8d5;eee8d5;eee8d5;eee8d5;eee8d5;268bd2;073642
Config_foreColor_#2=d33682;;;;;;;073642;073642
Config_foreColor_#3=;;;;;;;d33682;
Config_fontColor_#1=93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1
Config_fontColor_#2=93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1
Config_fontColor_#3=;;;;;;;d33682;

Things I like

simple deployment

Initially getting started is very easy. Being a java based application, it ships with a nice embedded db that will meet most small usage scenarios very easily.

backup/recovery

Artifactory makes backups very easy to configure and restores are very straightforward. I've done several migrations from/to AWS and installs and it's worked very well.

dedupe