Colorized tail

I was tailing a logfile and I wanted to colorize some specific keywords in it. I found Andreas Schamanek’s mycolorize which serves perfectly for the purpose. Download it and use it by doing $ tail logfile | ~/mycolorize color ‘regexp’ You can check additional examples and documentation on the website.

Read More Colorized tail

Clone-a-database one-liner

I had to clone a remote MySQL database into my Ubuntu notebook, and I just felt like doing a one-liner for it. $ mysqladmin -f -uroot create sandbox && ssh luisfarzati@mydatabasehost.com “mysqldump -uroot sandbox | gzip -f” | gunzip | mysql -uroot sandbox

Read More Clone-a-database one-liner