Skip to content

Instantly share code, notes, and snippets.

View pollin14's full-sized avatar

Victor Aguilar pollin14

  • Medtrainer
  • Mexico D.F.
View GitHub Profile
@pollin14
pollin14 / php-cs-fixer-pre-commit.php
Last active September 25, 2015 21:31 — forked from mardix/php-cs-fixer-pre-commit.php
A pre-commit hook to check syntax errors and PSR2
#!/usr/bin/php
<?php
/**
* .git/hooks/pre-commit
*
* This pre-commit hooks will check for PHP error (lint), and make sure the code
* is PSR compliant.
*
* Dependecy: PHP-CS-Fixer (https://github.com/fabpot/PHP-CS-Fixer)
*
@pollin14
pollin14 / nginx-vhost.conf
Created April 25, 2018 16:53 — forked from tjstein/nginx-vhost.conf
nginx vhost config for WordPress + PHP-FPM
upstream php-fpm {
server unix:/var/run/php5-fpm.sock;
}
server {
listen 80;
server_name www.example.com;
rewrite ^ http://example.com$request_uri?;
}