cd vendor/<owner>/<package> 
Create a new git repository (composer does not check out the full git repo by default. Only a sparse copy)
git init
git checkout -b branchname
| #!/bin/sh | |
| if (( $# < 2 )) || (( $# > 3 )) | |
| then | |
| echo "$0 <are-in-this-branch> <are-not-in-this-branch> [<url-of-repo>]" | |
| exit 1 | |
| fi | |
| URLPREFIX= | |
| if (( $# == 3 )) | |
| then | |
| URLPREFIX=$(echo "$3/pull/" | sed -e 's/[\/&]/\\&/g') | 
| # Source: http://choyan.me/oh-my-zsh-elementaryos/ | |
| sudo apt-get update && sudo apt-get install -y curl vim git zsh | |
| curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash | |
| sudo chsh -s $(which zsh) $(whoami) | 
So, we’ve been using Vagrant a lot lately at work, and one thing that bugged me was whenever i shutdown my computer, it wouldn’t because I forgot to suspend or halt my running Vagrant boxes before shutting down.
So, I wrote a simple init script that suspends all running boxes, nice and easy. It should handle multiple users also (I have not tested this thou).
#!/bin/sh -e ### BEGIN INIT INFO # Provides: something warm and fuzzy # Required-Start: vboxdrv # Required-Stop: vboxdrv # Default-Start: 2 3 4 5
| <?php | |
| /* * ** | |
| * | |
| * This script converts an existing MySQL database to migrations in Laravel 4. | |
| * | |
| * 1. Place this file inside app/controllers/ | |
| * | |
| * 2. In this file, edit the index() method to customize this script to your needs. | |
| * - inside $migrate->ignore(), you pass in an array of table | 
#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!
I hope it helps you too!
fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup