How to solve Peer certificate CN not matching in PHP with CakePHP

If you are dealing with this error: Error: stream_socket_client(): Peer certificate CN=`*.google.com' did not match expected CN=`*.youtube.com' It's because PHP »

How to add bootstrap to our Sails.js 0.10 project

Posts about Sails.js 0.10 How to build a CRUD API with Sails.js in seconds How to add Bootstrap to our Sails.js projects »

How to sniff our CakePHP code with Eclipse

First of all we have to follow three of my previous posts where we installed PHP, PEAR, CodeSniffer, CakePHP Sniff and Eclipse PHP Plugins. How to »

How to sniff our CakePHP code on Mavericks

First of all we have to have installed on our system PHP using homebrew you can follow my post PHP on Mavericks with Homebrew to accomplished »

How to create our own Vagrant box

Basicaly we need to run the following command: vagrant package --base <VM_NAME_ON_VIRTUALBOX> --vagrantfile <OUR_VAGRANT_FILE_PATH> --output < »

How to use different Python version with virtualenv

If you have different version of python installed on your machine and you wanna start a enviroment with a specific version you can run the following »

How to tagging with git

This is the command to create a tag of our code: git tag -a v0.1 -m 'my message v0.1' The -m specifies a tagging »

How to clone a specific branch of a repository with Git

git clone -b <branch> <remote_repo> Example: git clone -b my-branch git@github.com:user/myproject.git Alternative (no public key setup »