Skip to content

Instantly share code, notes, and snippets.

View reinaldomendes's full-sized avatar

Reinaldo Barcelos Mendes reinaldomendes

  • Belo Horizonte MG
View GitHub Profile
@reinaldomendes
reinaldomendes / .php_cs
Created October 30, 2016 20:57 — forked from jatubio/.php_cs
Config file to pass PHP-CS-Fixer with Laravel 5.1 custom and PSR-2 styles coding
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
@reinaldomendes
reinaldomendes / chroot.sh
Created January 29, 2016 05:20 — forked from dorneanu/chroot.sh
Put nginx and PHP to jail using Debian 8
#!/bin/bash
# Config
N2CHROOT=~victor/tmp/n2chroot
export JAIL=/var/www/chroot
function create_chroot {
# Create devices
mkdir $JAIL/dev
mknod -m 0666 $JAIL/dev/null c 1 3