Installing Phalcon PHP on Elastic Beanstalk

I have created a config to put in your .ebextensions folder. I was not able to find a single tutorial or blog post showing you how to get Phalcon working on EB so here it is: # Lets install all the packages its needs # Source: http://phalconphp.com/en/download packages:…

Pulling all branches from a remote GIT repository

This post assumes you have access to BASH in some for or another eith on linux, osx or cygwin. #!/bin/bash for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do git branch --track ${branch##*/} $branch done It will create tracking branches for all remote…

How to unit test with PHPUnit on linux or osx (the easy way)

This method assumes you already have php installed on your machine and working. If you do not please do so before attempting the below instructions. Download: wget https://phar.phpunit.de/phpunit.phar Make executable: chmod +x phpunit.phar Move globally: sudo mv phpunit.phar /usr/local/bin/phpunit Test…

Making Laravel log to Syslog

Its really simple to make Laravel log to Syslog instead of the file system. You may need to do this for various reasons so here is how: Open up app/start/global.php and replace Log::useFiles(storage_path().'/logs/laravel.log'); with $monolog = Log::getMonolog(); $monolog->pushHandler(…

Can't mount shared folders with guest additions 4.3.10

I decided to post about this as its a problem a lot of my guys and others are running into when updating virtualbox and tryign to start a new box in Vagrant. Failed to mount folders in Linux guest. This is usually because the "vboxsf" file system is not available.…