Skip to content

Instantly share code, notes, and snippets.

View zbindenren's full-sized avatar

Rene Zbinden zbindenren

View GitHub Profile
@zbindenren
zbindenren / test.go
Last active December 7, 2018 07:45
Testing
// http client
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if !strings.Contains(r.URL.Path, "trepd101.pnet.ch") {
http.Error(w, "not found", http.StatusNotFound)
return
}
fmt.Fprint(w, response)
}))
defer ts.Close()
@zbindenren
zbindenren / genesis_public_key
Created February 8, 2018 14:30
genesis_public_key
042587c704e41df84c5aa6c31c35d9e85bc903141e79eddeb8601c4fffd7e324040e5d06158114a52fe9a02ae6907afa057fc1b1acd11ca64584e7bc7fca8d220e
@zbindenren
zbindenren / zip.go
Last active April 10, 2018 09:22
[Append zip archive to go binary]
package main
import (
"archive/zip"
"io"
"log"
"os"
"path/filepath"
)