Serve HTML files with Ruby

Python has:

python3 -m http.server

But I like Ruby, so I do this instead:

# Basic
ruby -run -e httpd

# With arguments
ruby -run -e httpd -- --bind-address=0.0.0.0 --port=9090

Note: there is no such thing as a -run flag for ruby, you’re doing -r for require and you’re loading the un.rb file from the ruby core. Then -e to evaluate the httpd function in that file.