Find it here: https://github.com/bitemyapp/learnhaskell
# knife cheat | |
## Search Examples | |
knife search "name:ip*" | |
knife search "platform:ubuntu*" | |
knife search "platform:*" -a macaddress | |
knife search "platform:ubuntu*" -a uptime | |
knife search "platform:ubuntu*" -a virtualization.system | |
knife search "platform:ubuntu*" -a network.default_gateway |
#!/bin/bash | |
# Check out the blog post at: | |
# | |
# http://www.philipotoole.com/influxdb-and-grafana-howto | |
# | |
# for full details on how to use this script. | |
AWS_EC2_HOSTNAME_URL=http://169.254.169.254/latest/meta-data/public-hostname | |
INFLUXDB_DATABASE=test1 |
Note: total experiment and hack, looks nasty, could be awesome:
- Drop the
kitchen.local.yml
into$HOME/.kitchen/config.yml
- Install polipo (with Mac:
brew install polipo
, with Ubuntu:apt-get install polipo
) - Drop
polipo-start
andpolipo-console
somewhere useful (perhaps$HOME/bin
?)
# Complete words from tmux pane(s) {{{1 | |
# Source: http://blog.plenz.com/2012-01/zsh-complete-words-from-tmux-pane.html | |
# Gist: https://gist.github.com/blueyed/6856354 | |
_tmux_pane_words() { | |
local expl | |
local -a w | |
if [[ -z "$TMUX_PANE" ]]; then | |
_message "not running inside tmux!" | |
return 1 | |
fi |
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 |
# 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 |
#!/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: |
“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.”
# 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 |