I hereby claim:
- I am trizz on github.
- I am trizz (https://keybase.io/trizz) on keybase.
- I have a public key ASCfOH7L6PpY47iz-GrTGujFLFcQuTfQ-1PJjocFxozRIwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
namespace App; | |
use Exception; | |
use MessagePack\Packer; | |
use Redis; | |
class SocketIO | |
{ | |
private $redis; |
app('view')->creator('*', function (\Illuminate\Contracts\View\View $view) { | |
if(env('API_CLIENT_ID') === 'private') { | |
$viewValues = explode('/', $view->getPath()); | |
$alreadyPrivate = ($viewValues[count($viewValues) - 2] === 'private'); | |
$last = array_pop($viewValues); | |
array_push($viewValues, 'private', $last); | |
$privateView = implode('/', $viewValues); |
<?php | |
# Log de querys | |
foreach(DB::getQueryLog() AS $queryData) { | |
$query = $queryData['query']; | |
$pdo = DB::getPdo(); | |
foreach($queryData['bindings'] as $binding) { | |
if(is_string($binding)) { | |
$query = preg_replace('/\?/', $pdo->quote($binding), $query, 1); | |
} else { | |
$query = $query."\n\nBinding: ".print_r($binding,1); |
# Rewrite for content. | |
if (!-d $request_filename) { | |
rewrite ^/(.+)/$ /$1 permanent; | |
} | |
location ~* \.php$ { |
<?php | |
rmdir_recurse('../vendor/meenie/munee/cache'); | |
function rmdir_recurse($path) { | |
$path = rtrim($path, '/').'/'; | |
$handle = opendir($path); | |
while(false !== ($file = readdir($handle))) { | |
if($file != '.' and $file != '..' ) { | |
$fullpath = $path.$file; |