Skip to content

Instantly share code, notes, and snippets.

View akshaymankar's full-sized avatar
🔥
Behold! The unquenchable fire of the stars!

Akshay Mankar akshaymankar

🔥
Behold! The unquenchable fire of the stars!
View GitHub Profile
@akshaymankar
akshaymankar / httpd.rb
Created August 5, 2013 10:01
Simple http server in ruby. Because you can't install gems everywhere !
require 'socket'
server = TCPServer.open 9000
puts "Listening on port 9000"
loop {
client = server.accept()
while((x = client.gets) != "\r\n")
puts x
end