Skip to content

Instantly share code, notes, and snippets.

Vladimir Mihailenco vmihailenco

View GitHub Profile
View gist:7b71c03d5b5bfaa1df21dd9693c988ed
package main
import (
"bytes"
"io/ioutil"
"testing"
"github.com/klauspost/compress/zstd"
"github.com/valyala/gozstd"
)
View gist:2db3d481a71db3264e6ce9f0b2736ba7
package main
import (
"bytes"
"io/ioutil"
"testing"
"github.com/klauspost/compress/zstd"
"github.com/valyala/gozstd"
)
View haproxy.cfg
frontend fe_http
bind *:80
capture request header Connection len 32
capture response header Connection len 32
default_backend be_go
View server.go
package main
import (
"log"
"net/http"
)
func main() {
http.HandleFunc("/upload", func(w http.ResponseWriter, req *http.Request) {
})
View gist:065dd023bee888f9505edf0099691f00
package main
import (
"fmt"
// "log"
// "time"
"github.com/go-pg/pg"
"github.com/go-pg/pg/orm"
)
View gist:5f553d12173a5a9e64d8a3ba19c9b43d
package main
import (
"fmt"
"github.com/go-pg/pg"
"github.com/go-pg/pg/orm"
"github.com/go-pg/sharding"
)
View gist:1c790383011ebc388dc469a640a76514
package main
import (
"log"
"strconv"
"time"
redis "gopkg.in/redis.v4"
)
View gist:78768e6eaa93aabd5888
package main
import (
"log"
"math/rand"
"strings"
"gopkg.in/pg.v4"
)
View gist:2ab6aaa5b8143c4b1b67
package main
import (
"log"
"math/rand"
"gopkg.in/pg.v4"
)
func main() {
View gist:1fe2808e1a5b77180aaf
package main
import (
"fmt"
"net/http"
"reflect"
"runtime"
"github.com/codegangsta/negroni"
"gopkg.in/airbrake/gobrake.v2"
You can’t perform that action at this time.