~/talk

There is no Magic: Write your own HTTP server, and then stop

Talkat RubyConf Colombia 2015 · 2015-10-15..10-16· [ruby, networking]
slides:none on file

Shows how to write a minimal Ruby TCP echo server and a tiny HTTP server using the socket library that listens on port 2015 and serves a single cat PNG. Code sends raw 200 responses, has no 404s or input sanitization, and a simple path‑traversal allows reading files like a private SSH key. Demonstrates the bug by fetching sensitive files, confirms the server “works” but is insecure, and recommends using nginx as a safer static server.

AI-written summary · about

  1. 0:00Introduction and joke
  2. 1:12About the speaker
  3. 3:21How the internet works
  4. 4:24Echo server demo
  5. 6:08HTTP basics
  6. 9:02Building a simple HTTP server
  7. 13:20Why not to use your own server
  8. 15:54Security risks and solutions
  9. 17:20Why write your own server
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.