start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
# | |
# Copyright (c) 2015 W. Mark Kubacki <[email protected]> | |
# Licensed under the terms of the RPL 1.5 for all usages | |
# http://www.opensource.org/licenses/rpl1.5 | |
# | |
set -e -o pipefail | |
CAsubj="/C=DE/ST=Niedersachsen/L=Hannover/O=Dummy CA/CN=Sign-It-All" |
//https://medium.com/@matryer/the-http-handler-wrapper-technique-in-golang-updated-bc7fbcffa702 | |
//wraps the handler do do things before and/or after | |
func auth(h http.Handler) http.Handler { | |
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | |
fmt.Println("Before") | |
h.ServeHTTP(w, r) | |
fmt.Println("After") | |
}) | |
} |