Skip to content

Instantly share code, notes, and snippets.

View satoruk's full-sized avatar
:octocat:
ランチ難民

Koyanagi Satoru satoruk

:octocat:
ランチ難民
View GitHub Profile
@satoruk
satoruk / unicornd
Created April 9, 2012 05:39
Run Script of unicorn that using RVM gemset.
#!/bin/bash
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start:
# Required-Stop:
# Should-Start;
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start the unicorns at boot
@satoruk
satoruk / solo.rb
Created June 16, 2011 08:18
Chef Solo Configuration File
file_cache_path "/tmp/chef-solo"
cookbook_path "/tmp/chef-solo/cookbooks"
cache_options({ :path => "/tmp/chef-solo/checksums", :skip_expires => true })
@satoruk
satoruk / auto_search_link.bookmarklet.js
Created July 12, 2010 10:43
MMORPGのIMO for iPhone のまとめwiki の自動で検索リンクを作るbookmarklet.
(function($, undefined) {
var lockKey = 'clickLockedId';
$.fn.releaseClickLocked = function(){
var tid = this.data(lockKey);
if(tid!==undefined){
clearTimeout(tid);
}
$(this).removeData(lockKey);
};
$.fn.singleClick = function(handler, timeout) {