Skip to content

Instantly share code, notes, and snippets.

gcc -E - <<< "#include<stdio.h>" | grep "stdio.h"
<?php
# command line php -d xdebug.profiler_enable=On -d xdebug.profiler_output_dir=.
ini_set('xdebug.default_enable', 1);
ini_set('xdebug.collect_params', 3);
ini_set('xdebug.collect_return', 1);
xdebug_start_trace('debug');
@caiotava
caiotava / memory-management.md
Last active January 28, 2017 14:36
Links about memory management
@caiotava
caiotava / gist:b73fe9496f9a65a07611
Created May 3, 2015 05:02
Custom FormRequest Laravel

CustomRequest

Abstract class to allow custom validation

namespace App\Http\Requests;

use App\Http\Requests\Request;
use Illuminate\Http\Exception\HttpResponseException;