SystemD: a few sample scripts to run Selenium Hub

[Work-In-Progress post]   This morning, I crafted a few systemd unit files to help me manage running a Selenium Hub. As an extra benefit, I have some stuff ready for whenever I move to using CoreOS. 🙂 I'll keep the files here:   So if you're familiar with… Continue reading

CoreOS: Resizing partition c0d0p9 on a HP DL360 G5

I recently installed CoreOS on my HP DL360 G5 and notice that even though I setup a hardware-raid 5 with 6 72GB SAS drives, my ninth partition was only 2GB in size. After some research I found out that CoreOS is supposed to enlarge the ninth partition automatically but that… Continue reading

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/  

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

VirtualBox: Fixing piix4_smbus 0000.00.07.0: SMBus base address uninitialized – upgrade bios or use force_addr=0xaddr

If you see the following error message when booting Arch Linux: == piix4_smbus 0000.00.07.0: SMBus base address uninitialized – upgrade bios or use force_addr=0xaddr == To fix this, add "blacklist i2c_piix4" to file /etc/modprobe.d/modprobe.conf /etc/modprobe.d/modprobe.conf == blacklist i2c_piix4 ==

mysql: Dumping single database table and restoring

Sometimes you need to dump a single table from a mysql table and restore it somewhere else. Here's what you need:   1. Dump the table (compress it so it will take shorter to transfer over the network)   mysqldump -h <HOST> -u <USERNAME> -p <DATABASE> <TABLE> | gzip >… Continue reading

Linux: Some maintenance

Your linux distribution may run some maintenance jobs or checks daily and you may get things like the following in your email:   '<USERNAME>' is a member of the 'httpd' group in /etc/group but not in /etc/gshadow The grpconv command creates gshadow from group and an optionally existing gshadow. execute:… Continue reading