Skip to content

Instantly share code, notes, and snippets.

@clcaza
clcaza / .block
Created March 12, 2018 14:02 — forked from mbostock/.block
The Gist to Clone All Gists
license: gpl-3.0
@clcaza
clcaza / 01_Laravel 5 Simple ACL manager_Readme.md
Created March 10, 2018 12:49 — forked from amochohan/01_Laravel 5 Simple ACL manager_Readme.md
Laravel 5 Simple ACL - Protect routes by an account / role type

#Laravel 5 Simple ACL manager

Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.

If the user has a 'Root' role, then they can perform any actions.

Installation

Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php

@clcaza
clcaza / books.md
Created March 10, 2018 12:46 — forked from abstractart/books.md
Free Programming Ebooks - O'Reilly Media
@clcaza
clcaza / nginx-tuning.md
Created March 8, 2018 07:12 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

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.