Skip to content

Instantly share code, notes, and snippets.

View erickhaendel's full-sized avatar
🎯
Focusing

Erick Haendel erickhaendel

🎯
Focusing
View GitHub Profile
@erickhaendel
erickhaendel / auto.js
Last active April 7, 2020 20:51
Gamersclub medalhas
// COLOCAR DENTRO DA LISTA (LIST) DE CODIGOS SEPARADOS POR VIRGULA E ENTRE ASPAS
// EX:
// var list = ['CODE_1' , 'CODE_2' , 'CODE_3']
var list = [
];
function sleep(ms) {

OSRM North America route server on EC2

Overview

OSRM route server is an extremely useful tool for getting the driving distance/time through multiple locations. The route server requires data that has to be downloaded and processsed before it can be used to serve routes from.

Processing OSRM data for large region like North America can be a real challenge due to memory and disk size requirements. It's also really time consuming. If you cut and try from scratch, you will repeatedly run into some constraints and fail after hours of running.

The following are summary notes from trying this with eventual success.

@erickhaendel
erickhaendel / gist:94129ef93e1be7483ba392acd8e9d64a
Created July 29, 2020 00:56 — forked from bravo-kernel/gist:136ad75e3430452e3321
Nginx virtual host site configuration file for CakePHP3.x
#
# Cakebox-generated Nginx virtual host using generic template.
#
server {
listen 80;
server_name www.cake3.app;
rewrite ^(.*) http://cake3.app$1 permanent;
}
@erickhaendel
erickhaendel / Install Composer using MAMP's PHP.md
Created July 29, 2020 03:32 — forked from irazasyed/Install Composer using MAMP's PHP.md
Instructions on how to change preinstalled Mac OS X PHP to MAMP's PHP Installation and then install Composer Package Management

Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Management


Instructions to Change PHP Installation


First, Lets find out what version of PHP we're running (To find out if it's the default version).

To do that, Within the terminal, Fire this command:

which php

@erickhaendel
erickhaendel / laravel_link.md
Created September 19, 2020 23:23
Fail Link Storage Laravel
@erickhaendel
erickhaendel / import-envs.bash
Created April 8, 2022 03:36
Importar Multiplas Variaveis no Heroku
cat .env.prod | xargs heroku config:set
# Output:
# API_PORT: 3000
# API_KEY_1: ab-cd
# DB_PORT: 6379
# REDISCLOUD_URL: xxx