Skip to content

Instantly share code, notes, and snippets.

@ianrodrigues
ianrodrigues / default
Created March 20, 2017 16:31 — forked from ghalusa/default
nginx default configuration file (ubuntu path: /etc/nginx/sites-available/default) with conversions of .htaccess environment variables and mod_rewrite logic, along with parameters supporting a fastcgi-based php setup
server {
listen 80;
root /var/www/YOUR_DIRECTORY;
index index.php index.html index.htm;
###################################################
# Change "yoururl.com" to your host name
server_name yoururl.com;
@ianrodrigues
ianrodrigues / .php_cs
Created January 4, 2017 19:17
Laravel 5.3 PHP CS Fixer example.
<?php
use Symfony\CS\Config\Config;
use Symfony\CS\FixerInterface;
use Symfony\CS\Finder\DefaultFinder;
$fixers = [
'blankline_after_open_tag',
'braces',
'double_arrow_multiline_whitespaces',
@ianrodrigues
ianrodrigues / estados-cidades.json
Created September 21, 2016 16:52 — forked from letanure/estados-cidades.json
JSON estados cidades
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",