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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/arm 3.6.11 Kernel Configuration | |
# | |
CONFIG_ARM=y | |
CONFIG_MIGHT_HAVE_PCI=y | |
CONFIG_SYS_SUPPORTS_APM_EMULATION=y | |
CONFIG_HAVE_PROC_CPU=y | |
CONFIG_STACKTRACE_SUPPORT=y | |
CONFIG_HAVE_LATENCYTOP_SUPPORT=y |
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
#!/bin/bash | |
pushd /tmp | |
COMMITS="8243d294600ca6e635bb617be23f34172e7676ab c23b88eff207744cccc42fa74f991eacdb419957 bf0c8f0fe1643c011fe9fa7dd14faeed604bd797 c7ec412a92e279f7f8d1ae88a2b1673dd64312f6" | |
PATCHES="" | |
for f in $COMMITS; do | |
wget --no-check-certificate https://github.com/gnprice/ruby/commit/$f.patch | |
PATCHES=$PATCHES,/tmp/$f.patch | |
done | |
rvm install -n fast_require 1.9.3-p194 --patch $PATCHES |
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
> java.lang.System.setProperty('java.nio.channels.spi.SelectorProvider','sun.nio.ch.PollSelectorProvider') |
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
ruby -J-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -S irb |
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
linux: pid 23484 (java): syscall epoll_create not implemented |
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
WARNING: Error fetching data: | |
IOError: Function not implemented (http://rubygems.org/latest_specs.4.8.gz) | |
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) | |
IOError: Function not implemented (http://rubygems.org/gems/bundler-1.2.0.gem) |
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
irb(main):002:0> Net::HTTP.get(URI.parse('http://www.google.com')) | |
IOError: Function not implemented | |
from org/jruby/ext/socket/RubyTCPSocket.java:110:in `initialize' | |
from org/jruby/RubyIO.java:1176:in `open' | |
from /usr/home/jps/.rvm/rubies/jruby-1.7.0/lib/ruby/1.9/net/http.rb:762:in `connect' | |
from org/jruby/ext/timeout/Timeout.java:105:in `timeout' | |
from /usr/home/jps/.rvm/rubies/jruby-1.7.0/lib/ruby/1.9/net/http.rb:762:in `connect' | |
from /usr/home/jps/.rvm/rubies/jruby-1.7.0/lib/ruby/1.9/net/http.rb:755:in `do_start' | |
from /usr/home/jps/.rvm/rubies/jruby-1.7.0/lib/ruby/1.9/net/http.rb:744:in `start' | |
from /usr/home/jps/.rvm/rubies/jruby-1.7.0/lib/ruby/1.9/net/http.rb:454:in `get_response' |
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 'rubygems' | |
require 'net/http/persistent' | |
require 'pp' | |
require 'set' | |
$endpoint = URI.parse('http://localhost:7777/') | |
$tcpserver = TCPServer.new(44231) | |
candidates = {} |
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
class Post | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
identity :type => String | |
field :title, :type => String | |
field :body, :type => String | |
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
def debase256(string) | |
string.reverse.bytes.inject([0, 1]) do |(sum, pow), byte| | |
[pow * byte.ord, pow * 256] | |
end.first | |
end |