Thursday, December 20, 2012

PHPUnit


sudo pear upgrade pear
Install PHPUnit Dependencies

Now, we can install PHPUnit and it’s dependencies through PEAR.

$ sudo pear channel-discover pear.phpunit.de
$ sudo pear channel-discover components.ez.no
$ sudo pear channel-discover pear.symfony.com
$ sudo pear install --alldeps phpunit/PHPUnit
Make Sure It Works

After everything is complete, verify that phpunit works:

$ phpunit --version
PHPUnit 3.5.5 by Sebastian Bergmann.

Sunday, December 02, 2012

Installing VirtualBox Guest Additions on Ubuntu Server

sudo mount /dev/cdrom /media/
sudo apt-get install -y dkms build-essential linux-headers-generic linux-headers-$(uname -r)
sudo /media/VBoxLinuxAdditions.run
sudo mount -t vboxsf ShareName /var/www/sharename

How to get the IP address of the docker host from inside a docker container

/sbin/ip route|awk '/default/ { print $3 }'