Let's say you want to host domains first.com and second.com.
Create folders for their files:
| # Browser caching of static assets. | |
| location ~* \.(jpg|jpeg|png|gif|ico|css|js|pdf)$ { | |
| expires 7d; | |
| add_header Cache-Control "public, no-transform"; | |
| } | |
| # Media: images, icons, video, audio send expires headers | |
| location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm)$ { | |
| expires 1M; | |
| access_log off; |
| """ | |
| this code is not mine! i shamelessly copied it from http://stackoverflow.com/questions/19790188/expanding-english-language-contractions-in-python | |
| all credits go to alko and arturomp @ stack overflow. | |
| basically, it's a big find/replace. | |
| """ | |
| import re | |
| cList = { | |
| "ain't": "am not", |
| git rm -r --cached . | |
| git add . | |
| git commit -m ".gitignore is now working" | |
| git push origin master |
| <?php | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Console\Input\InputOption; | |
| class Push extends Command { | |
| /** | |
| * The console command name. |
| // Replaces pasting with paste and indent. | |
| // Add to [Preferences → Key Bindings - User] file | |
| // MAC | |
| { "keys": ["super+v"], "command": "paste_and_indent"}, | |
| { "keys": ["super+shift+v"], "command": "paste" } | |
| // Windows/Linux | |
| { "keys": ["ctrl+v"], "command": "paste_and_indent"}, | |
| { "keys": ["ctrl+shift+v"], "command": "paste" } |
| # 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 |