linux: Upgrade xdebug on Ubuntu 14.04

Follow these steps to upgrade xdebug on Ubuntu 14.04   php -i > ~/phpinfo Copy content of ~/phpinfo and paste into Follow those steps: Download xdebug-2.3.3.tgz tar -xvf xdebug-2.3.3.tgz cd xdebug-2.3.3/ phpize && ./configure && make sudo cp modules/ /usr/lib/php5/20131226/  

ArchLinux: Running jenkins as another user

To minimize maintenance I wanted to run Jenkins as a different user that I already use for other services, as to avoid permission control hell and ssh-config hell as well. So here's what I did:   Let's say the user you want is called "johndoe" and it has an userid=2000… Continue reading

Mapping multiple domains to different nodejs ports using nginx

At the moment of this writing, I only have one VPS, so it wouldn't take long for me to be running more than 1 node app in it. Since I want to keep all of them working in this semi-production environment (and in a box I have at home). node… Continue reading

Archlinux: Setting up SALT Stack

Setup a salt stack server to keep all your computers properly configure when you reformat them:     1. Install SALT on a box that is accessible from anywhere that will become your salt master:   # pacman -S salt resolving dependencies… looking for inter-conflicts… Packages (19): apache-libcloud-0.14.1-1 libsodium-0.5.0-1 libxslt-1.1.28-3… Continue reading

New laptop: Lenovo y510p

I just got a brand new laptop, a Lenovo ideapad y510p. I plan on installing and using Arch Linux on it, so bookmark this post so you can follow my progress (and also contribute if you have tried before) I'll create separate posts so this doesn't become a super boring… Continue reading

Shell: xargs with a pipe to send logs to logstash

I have been playing with Logstash this weekend and I believe I have everything setup the way I want, so to put Kibana 3 to que test, I wanted to inject all my MediaTemple logs into Logstash to start searching and get used to querying Kibana. Hence something like this… Continue reading

MediaTemple: Enable Imagick on your GS

Here's how to enable Imagick on your GS:   1. Download the latest stable from   2. Create folder to store the compiled module: mkdir /home/$SITEID/data/lib mkdir /home/$SITEID/data/lib/php/     3. Uncompress it tar -xvzf imagick-3.1.2.tgz cd imagick-3.1.2   4. Configure it with phpize (I'm using php 5.5.5 on… Continue reading

Firefox: Bring the http back to URL bar

I don't like the fact that Firefox hides the "http://" from the URL bar and when I copy and paste the URL, it adds that back; thus stressing my copy-and-pasted skills up. To go back to the previous behavior of showing the protocol, visit: about:config   on your Firefox and… Continue reading

Hosting: Enabling Redis class on MediaTemple’s gridserver (gs)

Here's how I enabled access to a Redis server from my (GS) gridserver: 1. Store your SITEID in a variable: export SITEID=`pwd | awk -F\/ '{ print $3 }'`   2. Create a folder to store the module mkdir /home/$SITEID/data/lib mkdir /home/$SITEID/data/lib/php/   3. Get the Redis PECL package… Continue reading