Skip to content

Instantly share code, notes, and snippets.

View lalizita's full-sized avatar

Laís Lima lalizita

View GitHub Profile
@lalizita
lalizita / nginx.conf
Last active June 23, 2022 15:32
Simple serverse proxy example using NGINX
# The event key is required for nginx
events{
worker_connections 1024;
}
http {
server {
listen 8080;
# location is the key for your endpoint to access nginx configurarion
# example: curl -v http://localhost:8080/ will access this location
5+5 10
7+3 10
1+1 2
8+3 11
1+2 3
8+6 14
3+1 4
1+4 5
5+1 6
2+3 5
@lalizita
lalizita / read_csv.go
Last active March 14, 2022 21:16
Reading a csv file with go lang, csv file is in https://gist.github.com/lalizita/84daf831c49191d226c29e44097ec1f5
package main
import (
"encoding/csv"
"fmt"
"io"
"log"
"os"
)