Skip to content

Instantly share code, notes, and snippets.

View seblegall's full-sized avatar

Sébastien Le Gall seblegall

View GitHub Profile
@seblegall
seblegall / .gitconfig
Last active May 11, 2016 11:54
Git config
# Username and e-mail
[user]
name = ""
email = ""
[color]
ui = true
[core]
autocrlf = input
# Disable git indexing change on file mode
filemode = false
package main
import (
"github.com/golang-commonmark/markdown"
"fmt"
"net/http"
"io/ioutil"
"log"
"flag"
"net/url"
@seblegall
seblegall / install_docker.sh
Created May 11, 2016 06:58
Install Docker
#!/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:]'`
@seblegall
seblegall / reverseproxy.go
Last active February 12, 2024 19:11
A reverse proxy in Golang using Gin
package main
import (
"fmt"
"net/http"
"net/http/httputil"
"net/url"
"github.com/gin-gonic/gin"
)