Skip to content

Instantly share code, notes, and snippets.

View blegoh's full-sized avatar
🏠
Working from home

Yusuf Eka Sayogana blegoh

🏠
Working from home
View GitHub Profile
# ACCESS CONTROLS OPTIONS
# ====================
#
acl QUERY urlpath_regex -i cgi-bin \? \.php$ \.asp$ \.shtml$ \.cfm$ \.cfml$ \.phtml$ \.php3$ localhost
acl all src
acl localnet src 125.164.242.227 36.74.158.54 103.241.205.66
#acl localhost src 127.0.0.1/32
acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 81 3128 1025-65535
acl sslports port 443 563 81 2087 10000 21
acl ftp proto FTP
@blegoh
blegoh / gist:70a3674c5d43087e4a3129d513695d49
Created October 25, 2017 06:37 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@blegoh
blegoh / API.php
Last active July 19, 2017 03:04
Trait For API CRUD Resources
<?php
namespace App\Http\Traits;
use Illuminate\Http\Request;
use Validator;
trait API
{
@blegoh
blegoh / resource.php
Last active April 6, 2018 16:35
Trait for CRUD Resource Controller
<?php
namespace App\Http\Traits;
use Illuminate\Http\Request;
use Yajra\DataTables\DataTables;
trait Resource
{
/**