Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:3254777
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
require 'socket'
 
# Ruby 1.8
Process.getrlimit(Process::RLIMIT_CORE)
Process.getrlimit(Process::RLIMIT_NOFILE)
 
# Ruby 1.9
Process.getrlimit(:CORE)
Process.getrlimit(:NOFILE)
 
# Ruby 1.8
Socket.new(Socket::AF_INET, Socket::SOCK_STREAM)
Socket.new(Socket::AF_UNIX, Socket::SOCK_DGRAM)
 
# Ruby 1.9
Socket.new(:INET, :STREAM)
Socket.new(:UNIX, :DGRAM)
 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.