Skip to content

Instantly share code, notes, and snippets.

View sawanoboly's full-sized avatar
🤷‍♂️
🙃

Yukihiko SAWANOBORI sawanoboly

🤷‍♂️
🙃
View GitHub Profile
@wokamoto
wokamoto / gist:5994354
Created July 14, 2013 13:53
White Ale Coriander Special PHAK CHEE MASHI2
モルト
2-ROW 10,400g
WHEAT MALT 3,900g
ホップ
1st
チヌーク 15g
3rd
ストリアンゴールディング 30g
カスケード 25g
@sawanoboly
sawanoboly / opsworks_stack_state.rb
Created April 11, 2013 03:46
Ohai Plugin for AWS OpsWorks
provides 'opsworks'
require 'mixlib/shellout'
require 'json'
unless opsworks
opsworks Mash.new
cmd = Mixlib::ShellOut.new("opsworks-agent-cli stack_state")
@mrtazz
mrtazz / client.rb
Created September 4, 2012 04:05
send chef-client output to syslog
require 'rubygems'
require 'syslog-logger'
log_level :info
Logger::Syslog.class_eval do
attr_accessor :sync, :formatter
end
log_location Logger::Syslog.new("chef-client")
@jim80net
jim80net / install.sh
Created September 3, 2012 21:07
Install jenkins server on SmartOS
#!/bin/pseudo-bash
# Read through this and modify to taste.
# Tested on:
# dataset_uuid: c36a3d28-80c2-11e1-9ec6-df5bd8b43f76
# sdc:sdc:smartosplus:3.2.0
mkdir /data
useradd -d /data dev
groupadd dev
cd /data
@wrburgess
wrburgess / gist:2086949
Created March 19, 2012 00:20
Setting up New Relic for Sinatra on Heroku #newrelic #sinatra #heroku
@collindonnell
collindonnell / BBedit-Preview-in-Marked.scpt
Created February 29, 2012 05:56
Preview BBEdit Document in Marked
-- Preview the currently active BBEdit document using Marked.
tell application "BBEdit"
activate
-- Ask BBEdit for it's active document.
set the_document to active document of text window 1
-- If the file doesn't alreay exist, ask the user to save it.
if not the_document's on disk then
save the_document
@jtimberman
jtimberman / knife.rb
Created February 1, 2012 19:33
Commented knife.rb for all the things
# Knife Configuration File.
#
# This is a Ruby DSL to set configuration parameters for Knife's
# general options. The default location for this file is
# ~/.chef/knife.rb. If multiple Chef repositories are used,
# per-repository configuration files can be created. A per repository
# configuration file must be .chef/knife.rb in the base directory of
# the Chef repository. For example,
#
# ~/Development/chef-repo/.chef/knife.rb
@hiboma
hiboma / nginx.conf
Created January 24, 2012 13:02
Nginx+Lua+Redis で動的upstream
worker_processes 1;
error_log /dev/stderr debug;
events {
worker_connections 256;
}
http {
server {
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')