Skip to content

Instantly share code, notes, and snippets.

View krutten's full-sized avatar

Kevin Rutten krutten

View GitHub Profile
Come see my teammate Derek Collison talk about the PaaS we've been building at VMware
http://www.rubyconf.org/presentations/8
⚡ $ vmc -h
version # version
help, -h # show usage
Add to ~/.gitconfig
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5.1/lib/mongrel/configurator.rb
# Writes the PID file if we're not on Windows.
def write_pid_file
if RUBY_PLATFORM !~ /mswin/
log "Writing PID file to #{@pid_file}"
open(@pid_file,"w") {|f| f.write(Process.pid) }
open(@pid_file,"w") do |f|
f.write(Process.pid)
File.chmod(0644, @pid_file)