This file contains hidden or 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
rbx.platform.addrinfo.sizeof = 48 | |
rbx.platform.addrinfo.ai_flags.offset = 0 | |
rbx.platform.addrinfo.ai_flags.size = 4 | |
rbx.platform.addrinfo.ai_flags.type = int | |
rbx.platform.addrinfo.ai_family.offset = 4 | |
rbx.platform.addrinfo.ai_family.size = 4 | |
rbx.platform.addrinfo.ai_family.type = int | |
rbx.platform.addrinfo.ai_socktype.offset = 8 | |
rbx.platform.addrinfo.ai_socktype.size = 4 | |
rbx.platform.addrinfo.ai_socktype.type = int |
This file contains hidden or 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
#0 0x00007fff869bf4ea in kevent () | |
#1 0x00007fff869fe128 in _mdns_query_mDNSResponder () | |
#2 0x00007fff869fd5ac in _mdns_search () | |
#3 0x00007fff86a08db1 in _mdns_hostbyaddr () | |
#4 0x00007fff86a08172 in search_host_byaddr () | |
#5 0x00007fff86a0de8b in si_nameinfo () | |
#6 0x00007fff86a0dbbf in getnameinfo () | |
#7 0x0000000100223c9c in ffi_call_unix64 () at new_allocator.h:89 | |
#8 0x00007fff5fbf9c68 in ?? () |
This file contains hidden or 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 044d094a2747e6a4922d908d4c42dffa87c78453 Mon Sep 17 00:00:00 2001 | |
From: Ivan Samsonov <[email protected]> | |
Date: Sun, 20 Feb 2011 18:01:15 +0300 | |
Subject: [PATCH] Enhance Kernel#extend spec | |
--- | |
spec/ruby/core/kernel/extend_spec.rb | 16 ++++++++++++++++ | |
spec/ruby/core/kernel/fixtures/classes.rb | 10 ++++++++++ | |
2 files changed, 26 insertions(+), 0 deletions(-) |
This file contains hidden or 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
class Class | |
def cattr_accessor(sym) | |
class_eval("unless defined? @@#{sym}\n@@#{sym} = nil\nend\n\ndef self.#{sym}=(obj)\n@@#{sym} = obj\nend\n", __FILE__, __LINE__ + 1) | |
class_eval("def self.#{sym}\n@@#{sym}\nend\n", __FILE__, __LINE__ + 1) | |
end | |
end | |
class A | |
cattr_accessor :attribute | |
end |
This file contains hidden or 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 49bdb23d6f71f9afb6c2efafcc48a8e1c4e4bc28 Mon Sep 17 00:00:00 2001 | |
From: Ivan Samsonov <[email protected]> | |
Date: Mon, 31 Jan 2011 02:44:42 +0300 | |
Subject: [PATCH 1/2] Enhance spec for using Hash#[]= with already frozen keys. | |
--- | |
spec/ruby/core/hash/shared/store.rb | 7 +++++++ | |
1 files changed, 7 insertions(+), 0 deletions(-) | |
diff --git a/spec/ruby/core/hash/shared/store.rb b/spec/ruby/core/hash/shared/store.rb |
This file contains hidden or 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 'nokogiri' | |
require 'net/http' | |
require 'open-uri' | |
GOOGLE_API_KEY = '' | |
states = ["Alabama", | |
"Alaska", | |
"Arizona", | |
"Arkansas", |
This file contains hidden or 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
def bet(n) | |
`curl http://roulette.engineyard.com/`['13'] ? n*35 : 0 | |
end |
This file contains hidden or 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
class X < String | |
def to_s | |
"#{self}" # <-- to_s, to_s... | |
end | |
end | |
X.new('a').to_s | |
This file contains hidden or 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 0e39144fcc6c3bf400ad6ddede9effb6e5c4db0e Mon Sep 17 00:00:00 2001 | |
From: Ivan Samsonov <[email protected]> | |
Date: Sat, 27 Nov 2010 18:32:24 +0300 | |
Subject: [PATCH 1/2] Spec for edge case in Bignum#>> | |
--- | |
spec/ruby/core/bignum/right_shift_spec.rb | 2 ++ | |
1 files changed, 2 insertions(+), 0 deletions(-) | |
diff --git a/spec/ruby/core/bignum/right_shift_spec.rb b/spec/ruby/core/bignum/right_shift_spec.rb |
This file contains hidden or 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
def execute(domain) | |
Rails.logger.info "Esteblishing ssh connection to #{domain}" | |
Net::SSH.start(domain, DDOS_USER) {|ssh| yield DdosmeSSH.new(ssh)} | |
end | |
irb(main):065:1* ssh.execute("echo 'П' > 1") | |
irb(main):066:1> end | |
OpenSSL::Cipher::CipherError: data not multiple of block length | |
from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/transport/state.rb:85:in `final' |