Skip to content

Instantly share code, notes, and snippets.

View fhferreira's full-sized avatar
🏠
Home-Office since 2005

Flávio H. Ferreira fhferreira

🏠
Home-Office since 2005
View GitHub Profile
@fhferreira
fhferreira / introrx.md
Created February 1, 2016 01:35 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@fhferreira
fhferreira / JwtAuthController.php
Created January 27, 2016 06:51 — forked from xtrasmal/JwtAuthController.php
Vue auth + "tymon/jwt-auth": "^0.5.6"
<?php
namespace App\Http\Controllers\Auth;
use JWTAuth;
use App\Http\Controllers\Controller;
use Tymon\JWTAuth\Exceptions\JWTException;
use Tymon\JWTAuth\Exceptions\TokenExpiredException;
use Tymon\JWTAuth\Exceptions\TokenInvalidException;
@fhferreira
fhferreira / springer-free-maths-books.md
Created January 4, 2016 01:23 — forked from bishboria/springer-free-maths-books.md
Springer made a bunch of books available for free, these were the direct links

Configuração de subdomínios local (Apache + DNSmasq + Laravel)

Este tutorial tem como objetivo, a configuração do seu apache local para trabalhar com subdominios no laravel.

O que será utilizado:

  • Laravel
  • Servidor Apache
  • Servidor DNS/DHCP
  • Linux
@fhferreira
fhferreira / list.md
Created October 27, 2015 23:51 — forked from umpirsky/list.md
Symfony e-commerce solutions.
@fhferreira
fhferreira / gist:ff59a6523cf9d0df1633
Last active September 22, 2015 03:29 — forked from adrienne/gist:3180103
Haversine formula (PHP/MySQL)
/**
* Generates the string for the Haversine function. We assume that the `zipcode`, `latitude`,
* and `longitude` columns are named accordingly. We are also not doing much error-checking
* here; this is a simple text cruncher to make things prettier.
* We may also be integrating some extra SQL in, passed in via the $extra parameter
*
* @param string $table The table to search in
* @param float $lat The latitude part of the reference coordinates
* @param float $lng The longitude part of the reference coordinates
* @param int $radius The radius to search within
@fhferreira
fhferreira / session-life-cycle.md
Last active September 14, 2015 17:47 — forked from mindplay-dk/session-life-cycle.md
Complete overview of the PHP SessionHandler life-cycle

This page provides a full overview of PHP's SessionHandler life-cycle - this was generated by a set of test-scripts, in order to provide an exact overview of when and what you can expect will be called in your custom SessionHandler implementation.

Each example is a separate script being run by a client with cookies enabled.

To the left, you can see the function being called in your script, and to the right, you can see the resulting calls being made to a custom session-handler registed using session_set_save_handler().

@fhferreira
fhferreira / centos7_ambiente_desenvolvimento.md
Last active January 6, 2020 18:11 — forked from marciopaiva/centos7_ambiente_desenvolvimento.md
CentOS 7 - Apache 2.4 + MOD_PROXY_FCGI + PHP-FPM 5.5 + InstantClient Oracle.

CentOS 7 - Apache 2.4 + PHP-FPM 5.5 + InstantClient Oracle.


Montando uma VM para o desenvolvimento de aplicações em PHP, utilizado o CentOS 7

@fhferreira
fhferreira / principais_packages.md
Last active August 29, 2015 14:26 — forked from vluzrmos/principais_packages.md
Lista dos principais packages para Laravel citados no 16º Hangout Laravel Brasil.