Skip to content

Instantly share code, notes, and snippets.

View rodrigore's full-sized avatar

Rodrigo Guzmán rodrigore

  • Santiago, Chile
View GitHub Profile
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
// Requires:
// Leaflet: http://leafletjs.com/
// Leaflet.curve: https://github.com/elfalem/Leaflet.curve
//
// Assumes:
// var map is a Leaflet map and already set up.
var latlngs = [];
var latlng1 = [LATITUDE, LONGTITUDE],

Ejercicio 1 - Carga de archivos en HDFS

# crear carpeta en hadoop
hdfs dfs -mkdir /movielens-20m

# descarga de archivos de s3 a carpeta loca
aws s3 cp s3://bigdata-desafio/challenges/u3act1/ movies/ --recursive

# copiar archivos descargados a la carpeta movielens-20m de hadoop
@rodrigore
rodrigore / nginx.conf
Created November 18, 2019 03:01 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@rodrigore
rodrigore / postgres-brew.md
Created August 9, 2019 22:23 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@rodrigore
rodrigore / SwapDriverServiceProvider.php
Last active April 28, 2019 04:49 — forked from JacobBennett/Readme.MD
Regarding Filesystems minio and s3
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Storage;
class SwapDriverServiceProvider extends ServiceProvider
{
/**
@rodrigore
rodrigore / diablo2_instructions.md
Created June 30, 2018 19:11
Diablo2 on Mac OSX El Capitan

Diablo II LoD on Mac OSX El Capitan

These are the instructions for using Terminal to install the Windows version of the game onto your machine. You can then easily copy the game multiple times for different mods you might want to play.

In this guide you'll end up with:

programas

  • EasyAVR

pasos

  • Crear firmware (rodrigh.hex) en EasyAVR
  • sudo dfu-programmer atmega32u4 erase
  • dfu-programmer atmega32u4 flash rodrigh.hex

timeout

php.ini

vim /etc/php5/fpm/php.ini max_execution_time = 300000

php-fpm

sudo vim /etc/php5/fpm/pool.d/www.conf request_terminate_timeout = 0

nginx

key repeat

defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false

plugins

  • material theme
  • vintageous
  • editor config
  • phpcompanion
  • phpcs