Skip to content

Instantly share code, notes, and snippets.

View nicolasazrak's full-sized avatar

Nicolas nicolasazrak

View GitHub Profile
@nicolasazrak
nicolasazrak / README.md
Last active January 12, 2024 21:24
Graph process memory

Usage ./graph.sh

It requires having gnuplot installed

package main
import (
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"strings"
"time"
@nicolasazrak
nicolasazrak / Dockerfile
Last active December 23, 2019 04:56 — forked from moneytoo/gist:ab3f34e4fddc2110675952f8280f49c5
nginx with OpenSSL 1.0.2 (ALPN) on CentOS 7, also available from https://brouken.com/brouken-centos-7-repo/
FROM centos:7
RUN mkdir -p /tmp/nginx /root/rpmbuild/RPMS/x86_64/
ADD build.sh /tmp/nginx/
WORKDIR /tmp/nginx
CMD /tmp/nginx/build.sh
@nicolasazrak
nicolasazrak / Readme.md
Last active January 16, 2018 21:00
Ejemplo en python de un job map reduce para el TP de SO 1C2015

Job de map reduce para contar la cantidad de repeticiones de cada palabra en un texto.

Modo de uso: cat texto.txt | ./mapper.py | sort | ./reducer.py

Puede agregarse al final `` cat texto.txt | ./mapper.py | sort | ./reducer.py | sort -r -n -k2 > out.txt