Skip to content

Instantly share code, notes, and snippets.

View irineujunior's full-sized avatar
😎
You are not done when it works, you are done when it's right.

Irineu Martins Junior irineujunior

😎
You are not done when it works, you are done when it's right.
View GitHub Profile
@alfhen
alfhen / homestead_install_elastic_search.sh
Last active September 27, 2019 17:18
Install ElasticSearch on Laravel Homestead
# Login as root
sudo -s
# Update Aptitude
apt-get update
# Install Java
apt-get install openjdk-7-jre-headless -y
# Download and install Elasticsearch Public Signing Key
@solancer
solancer / mod_pagespeed .htaccess
Last active December 1, 2024 00:09
mod_pagespeed .htaccess configuration
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
@petericebear
petericebear / .php_cs
Last active October 3, 2024 21:26
Laravel 5.x php-cs-fixer config file
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
@juliobitencourt
juliobitencourt / StaticController.php
Last active June 5, 2020 16:33
A Laravel controller to serve Static pages. It translates the slug to a view file, but you might override this behavior with yout own methods
<?php
namespace App\Http\Controllers\Web;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class StaticController extends Controller
@alexandremcosta
alexandremcosta / universidades.csv
Last active April 14, 2025 19:46
Lista de Todas as Universidades do Brasil (retirado do portal de indicadores do INEP/ENADE)
ACADEMIA DA FORÇA AÉREA AFA SP
ACADEMIA DA POLÍCIA CIVIL DO ESTADO DA BAHIA ACADEPOL BA
ACADEMIA DE POLÍCIA MILITAR DO BARRO BRANCO APMBB SP
ACADEMIA DE POLÍCIA MILITAR DOM JOÃO VI APMDJVI RJ
ACADEMIA DE POLÍCIA MILITAR APM BA
ACADEMIA MILITAR DE AGULHAS NEGRAS AMAN RJ
ANHANGUERA EDUCACIONAL S.A. UNIANHANGUERA RS
ANHANGUERA EDUCACIONAL AESA SP
ASSOCIAÇÃO CATARINENSE DE ENSINO ACE SC
ASSOCIAÇÃO DE ENSINO SUPERIOR DO PIAUÍ AESPI PI
@hyl
hyl / emoji-aliases.json
Created July 17, 2015 13:27
JSON with every emoji alias.
{
"people": ["bowtie", "smile", "laughing", "blush", "smiley", "relaxed", "smirk", "heart_eyes", "kissing_heart", "kissing_closed_eyes", "flushed", "relieved", "satisfied", "grin", "wink", "stuck_out_tongue_winking_eye", "stuck_out_tongue_closed_eyes", "grinning", "kissing", "kissing_smiling_eyes", "stuck_out_tongue", "sleeping", "worried", "frowning", "anguished", "open_mouth", "grimacing", "confused", "hushed", "expressionless", "unamused", "sweat_smile", "sweat", "disappointed_relieved", "weary", "pensive", "disappointed", "confounded", "fearful", "cold_sweat", "persevere", "cry", "sob", "joy", "astonished", "scream", "neckbeard", "tired_face", "angry", "rage", "triumph", "sleepy", "yum", "mask", "sunglasses", "dizzy_face", "imp", "smiling_imp", "neutral_face", "no_mouth", "innocent", "alien", "yellow_heart", "blue_heart", "purple_heart", "heart", "green_heart", "broken_heart", "heartbeat", "heartpulse", "two_hearts", "revolving_hearts", "cupid", "sparkling_heart", "sparkles", "star", "star2", "dizzy",
@vluzrmos
vluzrmos / compat_l5.php
Last active November 1, 2022 20:43
Lumen L5 compatibility helpers. That file should be added on root path of your project... and added to your composer.json
<?php
if(!function_exists('config_path'))
{
/**
* Return the path to config files
* @param null $path
* @return string
*/
function config_path($path=null)
{{-- Define all our servers --}}
@servers(['staging' => '', 'production' => ''])
@setup
{{-- The timezone your servers run in --}}
$timezone = 'Europe/Amsterdam';
{{-- The base path where your deployments are sitting --}}
$path = '/var/www/site.com/htdocs';
@gilbitron
gilbitron / PostDeploy.php
Last active December 5, 2016 19:06
Laravel Post Deployment Command
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
/**
* Laravel Post Deployment Command
* Author: Gilbert Pellegrom (http://gilbert.pellegrom.me)
* License: MIT
@iovar
iovar / proxy.php
Last active February 24, 2024 18:29
Simple PHP Proxy Script
<?php
/*
* Warning! Read and use at your own risk!
*
* This tiny proxy script is completely transparent and it passes
* all requests and headers without any checking of any kind.
* The same happens with JSON data. They are simply forwarded.
*
* This is just an easy and convenient solution for the AJAX