To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
| <?php | |
| // app/commands/DeployCommand.php | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| class DeployCommand extends Command | |
| { |
| <?php | |
| class m140108_152635_create_rbac_tables extends CDbMigration { | |
| public function up() { | |
| $this->createTable('AuthItem', array( | |
| 'name' => 'string NOT NULL', | |
| 'type' => 'integer NOT NULL', | |
| 'description' => 'text', | |
| 'bizrule' => 'text', |
Other people's projects:
My projects (tutorials are on my blog at http://maxoffsky.com):
| # ------------------------------------ | |
| # Docker alias and function | |
| # ------------------------------------ | |
| # Get latest container ID | |
| alias dl="docker ps -l -q" | |
| # Get container process | |
| alias dps="docker ps" |
| #!/bin/bash | |
| echo "Downloading GetDeb and PlayDeb" && | |
| wget http://archive.getdeb.net/install_deb/getdeb-repository_0.1-1~getdeb1_all.deb http://archive.getdeb.net/install_deb/playdeb_0.3-1~getdeb1_all.deb | |
| echo "Installing GetDeb" && | |
| sudo dpkg -i getdeb-repository_0.1-1~getdeb1_all.deb | |
| echo "Installing PlayDeb" && | |
| sudo dpkg -i playdeb_0.3-1~getdeb1_all.deb && |
| alias ..="cd .." | |
| alias cd..="cd .." | |
| edit() { | |
| $EDITOR $* | |
| } | |
| alias ff="find . -type f | grep -vF .git | grep -vF .DS_Store | grep -vF .keep | grep -vF /node_modules/" | |
| alias faf="find . -type f" | |
| alias fd="find . -type d | grep -vF .git" |
| # Change to the project directory | |
| cd $FORGE_SITE_PATH | |
| # Turn on maintenance mode | |
| php artisan down || true | |
| # Pull the latest changes from the git repository | |
| # git reset --hard | |
| # git clean -df | |
| git pull origin $FORGE_SITE_BRANCH |