View duration_helpers.rb
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
module ActiveSupport | |
class Duration | |
def in_seconds | |
to_f.seconds | |
end | |
def in_minutes | |
(to_f / 60).minutes | |
end |
View gist:375769
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
-----BEGIN PGP MESSAGE----- | |
Version: GnuPG v1.4.10 (GNU/Linux) | |
hQEMA4YKFkW7avIYAQf/ZcJ7g4uMFfvI0QwGuRCvZUKCD+FZbGvLqZHu/H1KNpu8 | |
FvAJIGglQj44e8XcBDEwUKfiKKJyUMoMydtHRErCU+/mJz6GL+o6Q8uivWu8WENq | |
9SdHBbcuPEujZRYOrLrE7/M4J1Oecc64SNintwKVdpAjzy/KBdtqJLodFTGu4BxE | |
pbfJDPoqbaF7+tPgqeKBXY4dgyWSFCTcWi2BtY3I0TakW1H8+huPreBWVxBa2Gxk | |
o1FAM1slxAu/0KFlExUGJcTZPGWJqfUy2LnI6rtveVFTjriD1THLPxTKXmsmjlI3 | |
0usA0354VnPKPBWYpCAzbNlv5s656RrdY47khJSdsdJHAYH7YzSUo3yT8IYovOMI | |
TFZ7hu0OxwGWfjRxM/Gs+JkKN5u6NRi7auXlQozgqkikTQrkIkhZwEPI1LmMk7pp |
View gist:180616
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
Rehearsal ---------------------------------------------------- | |
normal SHA-1 3.130000 1.040000 4.170000 ( 4.180956) | |
shell SHA-1 0.010000 0.040000 3.990000 ( 4.042143) | |
file-based SHA-1 3.010000 0.510000 3.520000 ( 3.534705) | |
------------------------------------------ total: 11.680000sec | |
user system total real | |
normal SHA-1 3.140000 1.040000 4.180000 ( 4.196356) | |
shell SHA-1 0.010000 0.040000 3.990000 ( 4.007471) | |
file-based SHA-1 3.010000 0.520000 3.530000 ( 3.544147) |
View gist:144839
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
--- remote_cache.rb | |
+++ (clipboard) | |
@@ -25,7 +25,7 @@ | |
private | |
def repository_cache | |
- File.join(configuration[:repository_cache] || "cached-copy") | |
+ File.join(shared_path, configuration[:repository_cache] || "cached-copy") | |
end | |
View gist:132095
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
2009/06/18 11:31:15 [error] 18340#0: *43 connect() to unix:/tmp/passenger.18303/master/helper_server.sock failed (111: Connection refused) while connecting to upstream, client: 99.40.52.110, server: _, request: "GET / HTTP/1.1", upstream: "unix:/tmp/passenger.18303/master/helper_server.sock:", host: "70.42.33.222" |