Skip to content

Instantly share code, notes, and snippets.

View Mikubill's full-sized avatar
🌴
On vacation

Kakigōri Maker Mikubill

🌴
On vacation
View GitHub Profile
@Mikubill
Mikubill / init.sh
Last active September 7, 2021 13:00
#!/bin/sh
# This script is meant for quick & easy install via:
# $ curl -fsSL https://gist.github.com/Mikubill/e6bf3877a967e4689066a8fd03c62818/raw/init.sh | bash
#
# For docker support:
# $ curl -fsSL https://gist.github.com/Mikubill/e6bf3877a967e4689066a8fd03c62818/raw/init.sh | bash -s docker
#
# For wireguard support:
# $ curl -fsSL https://gist.github.com/Mikubill/e6bf3877a967e4689066a8fd03c62818/raw/init.sh | bash -s wg
@Mikubill
Mikubill / otp.go
Created December 31, 2020 06:18
simple otp module
package otp
import (
"bytes"
"crypto/hmac"
"crypto/sha1"
"encoding/binary"
"strconv"
"strings"
"time"
@Mikubill
Mikubill / server.go
Last active March 13, 2023 01:10
Golang Simple HTTP Server
package main
import (
"log"
"net/http"
)
func main() {
mux := http.NewServeMux()
mux.HandleFunc("/", func(writer http.ResponseWriter, request *http.Request) {