Skip to content

Instantly share code, notes, and snippets.

View webframp's full-sized avatar

Sean Escriva webframp

View GitHub Profile
@otoolep
otoolep / influxdb-grafana-howto.sh
Last active March 14, 2021 06:32
Shell script to download, and configure, InfluxDB, nginx, and Grafana
#!/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
@bitemyapp
bitemyapp / gist:8739525
Last active May 7, 2021 23:22
Learning Haskell
@fnichol
fnichol / README.md
Last active April 27, 2023 15:24
Auto-enable Local HTTP Caching in Test Kitchen

Auto-enable Local HTTP Caching in Test Kitchen

Note: total experiment and hack, looks nasty, could be awesome:

Setup

  • 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 and polipo-console somewhere useful (perhaps $HOME/bin?)
@blueyed
blueyed / _tmux_pane_words.zsh
Last active May 26, 2023 07:39
ZSH configuration to complete words from tmux pane(s)
# 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
@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:
@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.”

@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
@mlafeldt
mlafeldt / README.md
Created September 19, 2012 19:52
Process metadata of Chef cookbooks
We couldn’t find that file to show.