Skip to content

Instantly share code, notes, and snippets.

View dreh23's full-sized avatar

Johannes Amorosa dreh23

View GitHub Profile
receiver:
iperf -s -u -B 224.0.55.55 -i 1
sender:
iperf -c 224.0.55.55 -u -T 32 -t 3 -i 1
Contributor Covenant Code of Conduct
Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
Our Standards
Examples of behavior that contributes to creating a positive environment include:
Developer Certificate of Origin Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 660 York Street, Suite 102, San Francisco, CA 94110 USA
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
import (
log "github.com/sirupsen/logrus"
"github.com/jinzhu/gorm"
)
type GormLogger struct {}
func (*GormLogger) Print(v ...interface{}) {
if v[0] == "sql" {
log.WithFields(log.Fields{"module": "gorm", "type": "sql"}).Print(v[3])
package main
import (
"fmt"
"math/rand"
"time"
)
type Server string
@dreh23
dreh23 / gist:08e5c79b01aced6eba5f8304ebeebe88
Created April 19, 2016 06:33
docker registry error log when connecting to minio s3 server
WARN[0000] No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable. go.version=go1.6 instance.id=fb30905f-79b7-4d06-a64d-ae992f973f2e version=v2.3.0-rc.1-245-g9d49169
INFO[0000] redis not configured go.version=go1.6 instance.id=fb30905f-79b7-4d06-a64d-ae992f973f2e version=v2.3.0-rc.1-245-g9d49169
INFO[0000] Starting upload purge in 5m0s go.version=go1.6 instance.id=fb30905f-79b7-4d06-a64d-ae992f973f2e version=v2.3.0-rc.1-245-g9d49169
INFO[0000] using inmemory blob descriptor cache go.version=go1.6 instance.id=fb30905f-79b7-4d06-a64d-ae992f973f2e version=v2.3.0-rc.1-245-g9d49169
INFO[0000] listening on [::]:443, tls go.version=go1.6 instance.id=fb30905f-79b7-4d06-a64d-ae992f973f2e version=v2.3.0-rc.1-245-g9d49169
INFO[0188] response c
### Keybase proof
I hereby claim:
* I am dreh23 on github.
* I am dreh23 (https://keybase.io/dreh23) on keybase.
* I have a public key whose fingerprint is 7F86 86B1 E13B 1380 813D A609 5229 57CF 11F0 F755
To claim this, I am signing this object:
@dreh23
dreh23 / add.go
Created June 30, 2015 14:35
Non functioning add ldap snippet for https://github.com/go-ldap/ldap
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// File contains Add functionality
//
// https://tools.ietf.org/html/rfc4511
//
// AddRequest ::= [APPLICATION 8] SEQUENCE {
// entry LDAPDN,