Skip to content

Instantly share code, notes, and snippets.

@fridtjof

fridtjof/file.rb Secret

Created April 14, 2018 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fridtjof/c405b65d946739b58bda7d7f05583936 to your computer and use it in GitHub Desktop.
Save fridtjof/c405b65d946739b58bda7d7f05583936 to your computer and use it in GitHub Desktop.
server_host = ARGV.shift || 'redacted.com'
server_port = ARGV.shift || '20920'
server_socket = TCPSocket.open(server_host, server_port.to_i)
puts "connected"
server_handler = ServerHandler.new server_socket
puts "serverhandler created"
class ServerHandler
def initialize(s)
@socket = s
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment