Deploying a Ghost blog using Capistrano

I absolutely love Capistrano, I use it almost every day, so when I had to choose a deploy tool for this blog, the choice was obvious. Luckily, someone had already made a gem that greatly helps with the deploy of a node.js application, so I didn't have to figure…

Wanna play Les Paul Google Doodle forever and ever?

Thanks to gensanblog.com who ripped it and made it available for everyone, I mirrored it here for neverending fun. Google ♥…

Simulate real users load on a webserver using Siege and Sproxy

We all know ApacheBench which is a really great tool for “brute-force” benchmarking, but what if we need to simulate n real users browsing a website in a plausible way? Well, Siege and Sproxy serve this exact purpose! Sproxy is a proxy that we can use to collect a list…

How to run a cron job every X seconds

There’s a really simple way for doing this directly in crontab: putting the process to sleep. Let’s see how: imagine you need to run a PHP script every 10 seconds to check whether a webiste is responding, here’s what you would need to put in crontab: * * * * * /usr…

Benchmark: libmysql vs mysqlnd

A few days ago I found out about the existence of the MySQL Native Driver (mysqlnd) that has been introduced in php 5.3, it is a replacement for libmysqlclient and it is licensed under the PHP license, therefore avoiding the need of the FOSS License Exception. The purpose of…

ApacheBench Script

Quoting from Apache Benchmark official website: ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. In order to make sure that a benchmark involving the use of ApacheBench is run without…