This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autocmd VimLeave * silent! exe '!echo -n "^[kvim leave^[\\"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 8f33021b62c3716d153d8f1dbb7b403a300e8164 Mon Sep 17 00:00:00 2001 | |
From: Yuichi Tateno <[email protected]> | |
Date: Mon, 3 Oct 2011 16:51:19 +0900 | |
Subject: [PATCH] OobGC: force GC.start | |
--- | |
lib/unicorn/oob_gc.rb | 2 ++ | |
1 files changed, 2 insertions(+), 0 deletions(-) | |
diff --git a/lib/unicorn/oob_gc.rb b/lib/unicorn/oob_gc.rb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# # your config.ru | |
# require 'unicorn_killer' | |
# use UnicornKiller::MaxRequests, 1000 | |
# use UnicornKiller::Oom, 400 * 1024 | |
module UnicornKiller | |
module Kill | |
def quit | |
sec = (Time.now - @process_start).to_i | |
warn "#{self.class} send SIGQUIT (pid: #{Process.pid})\talive: #{sec} sec" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Chrome Keyconfig", | |
"version": "1.11.0", | |
"normal_actions": { | |
"j": { | |
"name": "scroll down", | |
"args": [] | |
}, | |
"k": { | |
"name": "scroll up", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!nginx -p . -c cocproxy.nginx.conf | |
error_log /dev/stderr debug; | |
daemon off; | |
events { | |
worker_connections 48; | |
} | |
http { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!ruby | |
require 'rubygems' | |
require 'rbosa' | |
target_playlist = 'rounzi night' | |
OSA.utf8_strings = true | |
OSA::ObjectSpecifierList.extend Enumerable | |
itunes = OSA.app('iTunes') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/sass/tree/visitors/convert.rb b/lib/sass/tree/visitors/convert.rb | |
index 5eac1aa..833e563 100644 | |
--- a/lib/sass/tree/visitors/convert.rb | |
+++ b/lib/sass/tree/visitors/convert.rb | |
@@ -21,7 +21,7 @@ class Sass::Tree::Visitors::Convert < Sass::Tree::Visitors::Base | |
def visit_children(parent) | |
@tabs += 1 | |
return @format == :sass ? "\n" : " {}\n" if parent.children.empty? | |
- (@format == :sass ? "\n" : " {\n") + super.join.rstrip + (@format == :sass ? "\n" : " }\n") | |
+ (@format == :sass ? "\n" : " {\n") + super.join.rstrip + (@format == :sass ? "\n" : " \n#{' '*(@tabs-1)}}\n") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
confbase = 'git-ssh-create' | |
init_command = 'git init --bare --shared=true' | |
server = `git config --global #{confbase}.server`.chomp | |
if server.empty? | |
warn "Please set git config server." | |
warn " git config --global #{confbase}.server '[username@]yourserver.example.com'" | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
args = '--no-ri --no-rdoc' | |
re = %r{(.+?)\s+\((.+)\)} | |
`gem list`.split("\n").each do |gem| | |
_, package, versions = gem.match(re).to_a | |
if package | |
versions.split(/,\s*/).each do |version| | |
puts "gem install #{args} -v='#{version}' #{package}" | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r b73ac21f2453 AutoPatchWork/AutoPatchWork.js | |
--- a/AutoPatchWork/AutoPatchWork.js Sun Oct 24 02:01:42 2010 +0900 | |
+++ b/AutoPatchWork/AutoPatchWork.js Sat Dec 25 09:53:34 2010 +0900 | |
@@ -47,6 +47,7 @@ | |
options.BASE_REMAIN_HEIGHT = info.config.remain_height; | |
options.DEFAULT_STATE = info.config.auto_start; | |
options.FORCE_TARGET_WINDOW = info.config.target_blank; | |
+ options.REPLACE_STATE = info.config.replace_state; | |
options.css = info.css; | |
debug = info.config.debug_mode; |