Setup foo,bar,baz boolean vars
zstyle ':example:foo' doit yes
zstyle ':example:bar' doit no
# leave baz unset| const mix = require('laravel-mix'); | |
| const s3Plugin = require('webpack-s3-plugin'); | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Mix Asset Management | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Mix provides a clean, fluent API for defining some Webpack build steps | |
| | for your Laravel application. By default, we are compiling the Sass |
| # For use in Chef: | |
| # Adds a command: git-pull-recursive | |
| file "/usr/local/bin/git-pull-recursive" do | |
| owner "root" | |
| group "root" | |
| mode "0755" | |
| action :create | |
| content 'find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \;' | |
| end |
| <?php | |
| trait Sortable | |
| { | |
| /** | |
| * This function receives a $newOrder array parameter, which contains the order in which | |
| * we should sort our items after being dragged in the UI. The format of the $newOrder is: | |
| * | |
| * [ | |
| * newIndex => [ |
| <?php | |
| namespace App\Charts; | |
| use App\Support\Livewire\ChartComponentData; | |
| use ConsoleTVs\Charts\Classes\Chartjs\Chart; | |
| /** | |
| * Class WanSpeedTestsChart | |
| * |
lnav -i https://gist.github.com/80d1d179c5706f85b281a5558217a5fe.git
# or
lnav -i [email protected]:80d1d179c5706f85b281a5558217a5fe.git| # To enable CORS you should add lines with CORS rules below to your valet.conf file | |
| # Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx | |
| # of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory | |
| # after you edit your valet.conf do not forget to execute `valet restart` | |
| server { | |
| listen 80 default_server; | |
| root /; | |
| charset utf-8; | |
| client_max_body_size 128M; |
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
| set nocompatible " Disable vi-compatibility | |
| set t_Co=256 | |
| colorscheme xoria256 | |
| set guifont=menlo\ for\ powerline:h16 | |
| set guioptions-=T " Removes top toolbar | |
| set guioptions-=r " Removes right hand scroll bar | |
| set go-=L " Removes left hand scroll bar | |
| set linespace=15 |