A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| # PHPUnit: http://bit.ly/NYYCWs | |
| # Ruby: http://rubyinstaller.org/ (Mac) *OR* http://rubyinstaller.org/ (Win) | |
| # watchr: gem install watchr | |
| # Growl: http://growl.info/ | http://bit.ly/NYYCWs (Mac) *OR* http://bit.ly/NYYrdF (Win) | |
| # save in same level as 'artisan', then run watchr_imagesr autounit.rb | |
| # src: http://bit.ly/NYZMRT | |
| #watch just the test files (optionally superceeded by the next line) |
| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| class MY_Controller extends CI_Controller { | |
| public $data = array(); | |
| public $view; | |
| public function __construct() { | |
| parent::__construct(); | |
| $this->view = ($this->view !== null) ? $this->view : $this->router->directory . $this->router->class . '/' . $this->router->method; |
| set :application, "App Name" # Your app name | |
| set :repository, "[email protected]:xxxxx/xxx.git" # Your git repository | |
| set :document_root, "/home/user/www/awesome_app" | |
| set :deploy_via, :remote_cache | |
| # SSH Settings | |
| set :user, "user_ssh" | |
| set :password, "password_ssh" | |
| set :use_sudo, false |
| # Start the old vagrant | |
| $ vagrant init centos-6.3 | |
| $ vagrant up | |
| # You should see a message like: | |
| # [default] The guest additions on this VM do not match the install version of | |
| # VirtualBox! This may cause things such as forwarded ports, shared | |
| # folders, and more to not work properly. If any of those things fail on | |
| # this machine, please update the guest additions and repackage the | |
| # box. |
| # Initial setup | |
| git clone -o framework -b develop https://github.com/laravel/laravel.git project-name | |
| cd project-name | |
| git checkout --orphan master | |
| git commit -m "Initial commit" | |
| # Pulling changes | |
| git fetch framework | |
| git merge --squash -m "Upgrade Laravel" framework/develop | |
| # Fix merge conflicts if any and commit |
| # toggle iTerm Dock icon | |
| # add this to your .bash_profile or .zshrc | |
| function toggleiTerm() { | |
| pb='/usr/libexec/PlistBuddy' | |
| iTerm='/Applications/iTerm.app/Contents/Info.plist' | |
| echo "Do you wish to hide iTerm in Dock?" | |
| select ync in "Hide" "Show" "Cancel"; do | |
| case $ync in | |
| 'Hide' ) |
| # Capistrano Laravel 4 Deployment Tasks | |
| # Watts Martin (layotl at gmail com) | |
| # https://gist.github.com/chipotle/5506641 | |
| # updated 14-Aug-2013 | |
| # Assumptions: | |
| # | |
| # - You are using a .gitignore similar to Laravel's default, so your | |
| # vendor directory and composer(.phar) are *not* under version control | |
| # - Composer is installed as an executable at /usr/local/bin/composer |
| # laravel new-app | |
| alias laravel="git clone -o laravel -b develop https://github.com/laravel/laravel.git" | |
| alias artisan="php artisan" | |
| alias migrate="php artisan migrate" | |
| alias serve="php artisan serve" | |
| alias dump="php artisan dump" | |
| alias t="phpunit" | |
| # Generators Package |
| /* Flatten das boostrap */ | |
| .well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid { | |
| -moz-box-shadow: none !important; | |
| -webkit-box-shadow: none !important; | |
| box-shadow: none !important; | |
| -webkit-border-radius: 0px !important; | |
| -moz-border-radius: 0px !important; | |
| border-radius: 0px !important; | |
| border-collapse: collapse !important; | |
| background-image: none !important; |