Skip to content

Instantly share code, notes, and snippets.

View ericoutinho's full-sized avatar
🏠
Home Office 🚧

Eric Coutinho ericoutinho

🏠
Home Office 🚧
View GitHub Profile
@apertaoxis
apertaoxis / bootstrap.php
Created July 29, 2018 22:13
Funções uteis
<?php
if (!function_exists('filter')) {
/**
* @param int $source
* @param string $index
* @return mixed
*/
function filter($source, $index)
{
return filter_input($source, $index);
@joelsantosbr
joelsantosbr / laravel.htaccess
Created January 12, 2018 12:21
Redirecionar Laravel para pasta Public e com HTTPS
# Redireciona para o HTTPS independente do domínio
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA,L]
# Remove www. no prefixo do domínio
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,QSA,L]
# Redirecionar para pasta public
RewriteEngine On
@leocomelli
leocomelli / git.md
Last active January 7, 2026 22:16
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@michelbrito
michelbrito / estados
Created January 24, 2011 06:43
Lista de Estados Brasileiros
AC|Acre
AL|Alagoas
AP|Amapá
AM|Amazonas
BA|Bahia
CE|Ceará
DF|Distrito Federal
ES|Espírito Santo
GO|Goiás
MA|Maranhão