This file contains 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 -urN /Library/Ruby/Gems/1.8/gems/capistrano-2.5.3/CHANGELOG.rdoc /Library/Ruby/Gems/1.8/gems/capistrano-2.5.8/CHANGELOG.rdoc | |
--- /Library/Ruby/Gems/1.8/gems/capistrano-2.5.3/CHANGELOG.rdoc 2009-01-14 11:51:46.000000000 -0800 | |
+++ /Library/Ruby/Gems/1.8/gems/capistrano-2.5.8/CHANGELOG.rdoc 2009-08-20 16:23:05.000000000 -0700 | |
@@ -1,3 +1,36 @@ | |
+== 2.5.8 / July 2009 | |
+ | |
+* Fixes a problem in 2.5.7 where deploy:finalize_update had been badly merged. | |
+ | |
+== 2.5.6 & 2.5.7 / July 2009 | |
+ |
This file contains 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
# After installing ubuntu (hardy) | |
wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux/linux-headers-2.6.24-24-xen_2.6.24-24.59_amd64.deb | |
wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux/linux-headers-2.6.24-24_2.6.24-24.59_all.deb | |
dpkg -i linux-headers-2.6.24-24-xen_2.6.24-24.59_amd64.deb linux-headers-2.6.24-24_2.6.24-24.59_all.deb | |
tar jchvf kernel-headers-2.6.24-24-xen.tar.bz2 /lib/modules/2.6.24-24-xen/build | |
# You can download the file from http://drop.io/3xnd0is/asset/kernel-headers-2-6-24-24-xen-tar-bz2 |
This file contains 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 656f4c678b0c5fb7f40b758bf4d8a8cf884f2ce9 Mon Sep 17 00:00:00 2001 | |
From: Eric Lindvall <[email protected]> | |
Date: Mon, 21 Sep 2009 18:33:53 -0700 | |
Subject: [PATCH] Pass cache headers on to S3 and back to client. | |
This should allow varnish to serve the body of most requests after checking | |
freshness with the authoritative source. | |
--- | |
app/metal/hostess.rb | 15 ++++++++++++++- | |
1 files changed, 14 insertions(+), 1 deletions(-) |
This file contains 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 784d6d5e405fa569e1b30a226b9230b94b9e43c4 Mon Sep 17 00:00:00 2001 | |
From: Eric Lindvall <[email protected]> | |
Date: Mon, 21 Sep 2009 21:15:52 -0700 | |
Subject: [PATCH] Don't use the sinatra etag helper | |
The etag() helper is adding extra quotes around the value (and we don't want | |
it to). | |
--- | |
app/metal/hostess.rb | 15 +++++++++++++-- | |
1 files changed, 13 insertions(+), 2 deletions(-) |
This file contains 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 | |
# Riddle at http://bt.tumblr.com/post/202253034 | |
# Lower case letters | |
letters = ('a'..'z').to_a | |
translated_letters = letters.dup | |
12.times { translated_letters.push translated_letters.shift } | |
# Upper case letters |
This file contains 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 | |
# Riddle at http://bt.tumblr.com/post/212634688 | |
# Moved to http://bt.tumblr.com/post/212669579 | |
translation = Hash[*('a'..'z').zip(('a'..'z').to_a.reverse).flatten] | |
translation.each { |k,v| translation[k.upcase] = v.upcase } | |
puts DATA.read.gsub(/./) { |c| translation[c] || c } |
This file contains 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
# Want to use your own storage-conf.xml instead of the one included with | |
# the cassandra gem? | |
# | |
# Copy files from <cassandra-gem-root>/conf to a directory | |
# in your project ("cassandra/conf" is used in this example). | |
# | |
# Then run "rake cassandra" | |
# | |
CASSANDRA_HOME = "#{ENV['HOME']}/cassandra/server" |
This file contains 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
# This relies on god 0.7.22 or later. | |
# | |
# Restart god when it reaches 40MB | |
if defined?(ORIGINAL_ARGV) | |
Thread.new do | |
loop do | |
memory_usage = God::System::Process.new(Process.pid).memory # in kilobytes | |
if memory_usage > 40.megabytes | |
applog(nil, :info, "Stopping god server. Memory usage limit reached: #{memory_usage}kb") |
This file contains 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
$:.unshift "#{File.dirname(__FILE__)}/lib" | |
require 'ostruct' | |
require 'god' | |
God::Logger.syslog = false | |
templogio = StringIO.new | |
templogger = God::SimpleLogger.new(templogio) |
This file contains 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
Thread ID: 16553080 | |
Total: 33 Kb | |
self calls name | |
32 Kb 1 <Module::Timeout>#timeout | |
0 Kb 3 Kernel#sleep | |
Thread ID: 9213520 | |
Total: 114473 Kb |