Skip to content

Instantly share code, notes, and snippets.

Avatar

Sébastien Le Gall seblegall

View GitHub Profile
@seblegall
seblegall / reverseproxy.go
Last active Aug 6, 2022
A reverse proxy in Golang using Gin
View reverseproxy.go
package main
import (
"fmt"
"net/http"
"net/http/httputil"
"net/url"
"github.com/gin-gonic/gin"
)
View main.go
package main
import (
"github.com/golang-commonmark/markdown"
"fmt"
"net/http"
"io/ioutil"
"log"
"flag"
"net/url"
View .gitconfig
# Username and e-mail
[user]
name = ""
email = ""
[color]
ui = true
[core]
autocrlf = input
# Disable git indexing change on file mode
filemode = false
View install_docker.sh
#!/bin/bash
# variables
dockerMachineVersion=0.5.0
aptbin=apt-get
# install requirements
sudo $aptbin -y install apt-transport-https curl ca-certificates wget lsb-release
os_distrib=`lsb_release -s -i | tr '[:upper:]' '[:lower:]'`
os_codename=`lsb_release -s -c | tr '[:upper:]' '[:lower:]'`