start new:
tmux
start new with session name:
tmux new -s myname
| rm -rf app/Http/Controllers/Auth | |
| rm config/auth.php | |
| rm resources/lang/en/{auth.php,passwords.php} | |
| rm app/Http/Middleware/{Authenticate.php,RedirectIfAuthenticated.php} | |
| gsed -i '/auth/d; /guest/d' app/Http/Kernel.php | |
| rm -rf database/migrations/* |
| alias gd="git diff" | |
| alias gdc="git diff --cached" | |
| alias ga="git add" | |
| alias gca="git commit -a -m" | |
| alias gcm="git commit -m" | |
| alias gbd="git branch -D" | |
| alias gst="git status -sb --ignore-submodules" | |
| alias gm="git merge --no-ff" | |
| alias gpt="git push --tags" | |
| alias gp="git push" |
| set guifont=Menlo:h14 | |
| colorscheme solarized | |
| set guioptions-=m | |
| set guioptions-=T | |
| set guioptions-=r | |
| set guioptions-=L | |
| set nocompatible " Because filetype detection doesn't work well in compatible mode | |
| filetype plugin indent on " Turns on filetype detection, filetype plugins, and filetype indenting all of which add nice extra features to whatever language you're using | |
| syntax enable " Turns on filetype detection if not already on, and then applies filetype-specific highlighting. |
| in this example my app is called myapp and my notebooks network address is : 192.168.0.4 | |
| Where you reference your app in your hosts file you can just add another line like this: | |
| 127.0.0.1 myapp.app | |
| 192.168.0.4 myapp.app | |
| and access it on another device on the network like this : 192.168.0.4:8000 |
| Event::listen('illuminate.query', function($query, $params, $time, $conn) | |
| { | |
| dump(array($query, $params, $time, $conn)); | |
| }); |
| location ^~ /apis { | |
| alias /usr/share/nginx/aby_api/public; | |
| try_files $uri $uri/ @laravel; | |
| location ~ \.php$ { | |
| fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
| fastcgi_pass unix:/var/run/php5-fpm.sock; | |
| fastcgi_index index.php; | |
| include fastcgi_params; | |
| } | |
| } |
| var elixir = require('laravel-elixir'); | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Elixir Asset Management | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Elixir provides a clean, fluent API for defining some basic Gulp tasks | |
| | for your Laravel application. By default, we are compiling the Less | |
| | file for our application, as well as publishing vendor resources. |
| sudo apt-get install ranger caca-utils highlight atool w3m poppler-utils mediainfo trash-cli | |
| ranger --copy-config=scope | |
| map <DELETE> shell trash-put %s |
| # Referenced From : http://bhattigurjot.wordpress.com/2013/07/29/enhancing-your-vim-in-ubuntu/ | |
| # Uninstall existing VIM / GVIM | |
| sudo apt-get remove vim vim-runtime gvim vim-tiny vim-common vim-gui-common | |
| # Mercurial clone vim Code | |
| sudo apt-get install mercurial meld | |
| cd ~ | |
| hg clone https://code.google.com/p/vim/ |