Skip to content

Instantly share code, notes, and snippets.

View rodrigore's full-sized avatar

Rodrigo Guzmán rodrigore

  • Santiago, Chile
View GitHub Profile
@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 / 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 / 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

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
// 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],
# 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.
local cmp = require("cmp")
return {
"hrsh7th/nvim-cmp",
enabled = false,
opts = function(_, opts)
local has_words_before = function()
unpack = unpack or table.unpack
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
end