Skip to content

Instantly share code, notes, and snippets.

View goodjack's full-sized avatar
:octocat:
嗨~

小克 goodjack

:octocat:
嗨~
View GitHub Profile
@goodjack
goodjack / .gitignore
Created April 26, 2019 03:44 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@goodjack
goodjack / phpbrew-config.md
Created November 26, 2017 13:22 — forked from yang-wei/phpbrew-config.md
How to use switch PHP(using phpbrew) version in nginx config
php -v
PHP 5.6.3 (cli) (built: Oct 28 2015 09:47:41)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies

But this only changes in CLI. You have to tweak you nginx(same for apache) to make it works. Nginx will still using the native PHP-FPM.

> ps aux | grep php-fpm
@goodjack
goodjack / log4php-for-laravel.php
Last active August 11, 2017 09:45 — forked from technoknol/log4php-for-laravel.php
Working log4php in Laravel (5.4)
<?php
// Middleware:
// app\Http\Middleware\Log4php.php
namespace App\Http\Middleware;
use Closure;
class Log4php
{