ruby -run

This is a loose translation of my post from 2017

Recently, I was looking for a one-liner to start a web-server in the current directory. Stack Overflow gave me this command:

ruby -run -e httpd -- -p 9090 [DIR]

So what is this mysterious -run option an why is it not in the ruby manual?


ruby -e for better console experience

This is a loose translation of my post from 2017.

Ruby was influenced by Perl and can substitute it in its niche of “practical extraction and reporting”. In this small post, I’ll talk about using ruby for simple text processing in the terminal.


How I use git

This is a loose translation of my post from 2017 + minor edits.