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
$s = Time.now | |
Thread.new { loop { puts "[#{Time.now - $s}] hi 1"; sleep 1 } } | |
Thread.new { loop { puts "[#{Time.now - $s}] hi 2"; sleep 2 } } | |
sleep 0.5 | |
fork | |
sleep 100 |
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
<% | |
require 'cgi' | |
require 'uri' | |
begin | |
uri = URI.parse(ENV["DATABASE_URL"]) | |
rescue URI::InvalidURIError | |
raise "Invalid DATABASE_URL" | |
end |
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
~ % gem --version | |
1.8.10 | |
~ % ruby -v | |
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0] |
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 Valim | |
class FacepalmError < StandardError ; end | |
def have_doubts | |
!!yield | |
end | |
extend self | |
end | |
module Kernel |
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
--- | |
<%= ENV["RACK_ENV"] %>: | |
error_collector: | |
capture_source: true | |
enabled: true | |
ignore_errors: ActionController::RoutingError | |
apdex_t: 0.5 | |
ssl: false | |
monitor_mode: true | |
license_key: <%= ENV["NEW_RELIC_LICENSE_KEY"] %> |
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
% openssl s_client -connect www.ourreferralengine.com:443 | |
CONNECTED(00000003) | |
depth=3 /L=ValiCert Validation Network/O=ValiCert, Inc./OU=ValiCert Class 2 Policy Validation Authority/CN=http://www.valicert.com//emailAddress=info@valicert.com | |
verify error:num=19:self signed certificate in certificate chain | |
verify return:0 | |
--- | |
Certificate chain | |
0 s:/O=*.ourreferralengine.com/OU=Domain Control Validated/CN=*.ourreferralengine.com | |
i:/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure Certification Authority/serialNumber=07969287 | |
1 s:/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure Certification Authority/serialNumber=07969287 |
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
Africa | |
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa | |
Africa/Algiers | |
Africa/Asmara | |
Africa/Asmera | |
Africa/Bamako | |
Africa/Bangui | |
Africa/Banjul |
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 --git a/config/application.rb b/config/application.rb | |
index fec4144..75ea0ad 100644 | |
--- a/config/application.rb | |
+++ b/config/application.rb | |
@@ -4,9 +4,9 @@ require 'rails/all' | |
if defined?(Bundler) | |
# If you precompile assets before deploying to production, use this line | |
- Bundler.require *Rails.groups(:assets => %w(development test)) | |
+ # Bundler.require *Rails.groups(:assets => %w(development test)) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE delegatemap [ | |
<!ELEMENT delegatemap (delegate)+> | |
<!ELEMENT delegate (#PCDATA)> | |
<!ATTLIST delegate decode CDATA #IMPLIED> | |
<!ATTLIST delegate encode CDATA #IMPLIED> | |
<!ATTLIST delegate mode CDATA #IMPLIED> | |
<!ATTLIST delegate spawn CDATA #IMPLIED> | |
<!ATTLIST delegate stealth CDATA #IMPLIED> | |
<!ATTLIST delegate thread-support CDATA #IMPLIED> |
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
% ab -c 1 -n 50 http://scg-node-test-app.herokuapp.com/ | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking scg-node-test-app.herokuapp.com (be patient).....done | |
Server Software: | |
Server Hostname: scg-node-test-app.herokuapp.com |