Skip to content
View gist:7126877
$ openssl s_client -connect s3.amazonaws.com:443
CONNECTED(00000003)
depth=3 C = US, O = "VeriSign, Inc.", OU = Class 3 Public Primary Certification Authority
verify return:1
depth=2 C = US, O = "VeriSign, Inc.", OU = VeriSign Trust Network, OU = "(c) 2006 VeriSign, Inc. - For authorized use only", CN = VeriSign Class 3 Public Primary Certification Authority - G5
verify return:1
depth=1 C = US, O = "VeriSign, Inc.", OU = VeriSign Trust Network, OU = Terms of use at https://www.verisign.com/rpa (c)10, CN = VeriSign Class 3 Secure Server CA - G3
verify return:1
depth=0 C = US, ST = Washington, L = Seattle, O = Amazon.com Inc., CN = s3.amazonaws.com
verify return:1
View gist:7122210
ActiveSupport::Notifications.subscribe('deprecation.rails') do |name, start, finish, id, payload|
Honeybadger.notify(
error_class: "DEPRECATION WARNING",
error_message: payload[:message],
backtrace: payload[:callstack]
)
end
View gist:7099162
<- "GET /quick/Marshal.4.8/stackable_flash-0.0.7.gemspec.rz HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: Ruby\r\nConnection: keep-alive\r\nKeep-Alive: 30\r\nHost: rubygems.org\r\n\r\n"
-> "HTTP/1.1 302 Moved Temporarily\r\n"
-> "Server: nginx\r\n"
-> "Date: Tue, 22 Oct 2013 11:37:03 GMT\r\n"
-> "Content-Type: text/html\r\n"
-> "Content-Length: 154\r\n"
-> "Connection: keep-alive\r\n"
-> "Location: https://s3.amazonaws.com/production.s3.rubygems.org/quick/Marshal.4.8/stackable_flash-0.0.7.gemspec.rz\r\n"
-> "\r\n"
reading 154 bytes...
View rubygems ssl
$ openssl s_client -connect rubygems.org:443
CONNECTED(00000003)
depth=2 C = US, O = GeoTrust Inc., CN = GeoTrust Global CA
verify return:1
depth=1 C = US, O = "GeoTrust, Inc.", CN = RapidSSL CA
verify return:1
depth=0 serialNumber = RRAXldgzDrRZWQpGo6FHdTHV3qwvwXtD, OU = GT35895174, OU = See www.rapidssl.com/resources/cps (c)13, OU = Domain Control Validated - RapidSSL(R), CN = *.rubygems.org
verify return:1
---
Certificate chain
View issue5717.rb
gem "rails", "~> 3.2.0"
require "active_record"
require "logger"
ActiveRecord::Base.establish_connection(
adapter: "sqlite3",
database: ":memory:"
)
puts ActiveRecord::VERSION::STRING
View test.rb
class Foo
def to_io
puts "to_io"
IO.pipe.first
end
end
IO.select([Foo.new])
View 3-2-stable.txt
Generating data...
Inserting 20000 users and exhibits...
Calculating -------------------------------------
Model#id 6634 i/100ms
Model.new (instantiation)
1592 i/100ms
Model.new (setting attributes)
764 i/100ms
Model.first 147 i/100ms
Model.all limit(100) 4 i/100ms
View gist:5147785
.*** buffer overflow detected ***: spring app | rails-3-2 | started 2 secs ago | test mode terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7faab4882807]
/lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7faab4881700]
/lib/x86_64-linux-gnu/libc.so.6(+0x10a7be)[0x7faab48827be]
/home/travis/.rvm/rubies/ruby-2.0.0-p0/bin/../lib/libruby.so.2.0(rb_fd_set+0x7b)[0x7faab4cdf2eb]
/home/travis/.rvm/rubies/ruby-2.0.0-p0/bin/../lib/libruby.so.2.0(+0x8f0de)[0x7faab4bc70de]
/home/travis/.rvm/rubies/ruby-2.0.0-p0/bin/../lib/libruby.so.2.0(rb_ensure+0xdb)[0x7faab4ba508b]
/home/travis/.rvm/rubies/ruby-2.0.0-p0/bin/../lib/libruby.so.2.0(+0x8be7d)[0x7faab4bc3e7d]
View gist:5092937
# This style of code is a complete abomination and you should never do it!
my_var = if whatever?
thing
else
other_thing
end
View foo.diff
diff --git a/lib/spring/application.rb b/lib/spring/application.rb
index 6e241a8..69ef383 100644
--- a/lib/spring/application.rb
+++ b/lib/spring/application.rb
@@ -22,9 +22,6 @@ module Spring
@stdout = IO.new(STDOUT.fileno)
@stderr = IO.new(STDERR.fileno)
- @stdin = File.open('/dev/null', 'r')
-
Something went wrong with that request. Please try again.