Skip to content

Instantly share code, notes, and snippets.

Matt Ho savaki

  • San Francisco
Block or report user

Report or block savaki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@savaki
savaki / main.go
Created Dec 31, 2017
performance of kafka-go consumer group reader
View main.go
package main
import (
"context"
"crypto/tls"
"crypto/x509"
"flag"
"fmt"
"io/ioutil"
"log"
@savaki
savaki / main.go
Last active Sep 1, 2019
comparison of confluent-kafka-go vs sarama-cluster consumer performance
View main.go
package main
import (
"crypto/tls"
"crypto/x509"
"flag"
"fmt"
"io/ioutil"
"log"
"os"
View gist:afd87416d85439066702e8051f04878b
package main
import (
"context"
"fmt"
"log"
"time"
"github.com/altairsix/eventsource"
)
@savaki
savaki / drawing.go
Created Apr 30, 2015
Re: A Rust Contributor Tries Their Hand at Go
View drawing.go
package main
import "os"
var (
Red = rgb(255, 0, 0)
Blue = rgb(0, 0, 255)
)
func rgb(red, green, blue int) Color {
View gist:00ff85082e0f19d7ce39
package main
import (
"fmt"
"os/exec"
)
func main() {
// in this example, the offending docker code has been placed in a shell script
command := fmt.Sprintf("/bin/bash sample.sh")
View gist:2a51d55bc8d8de82e422
package main
import (
"fmt"
"os/exec"
)
func main() {
command := fmt.Sprintf("echo 'this works'")
View gist:2879c27372dbc1cdc241
package main
import (
"fmt"
"os/exec"
)
func main() {
tag := "ec2-xxx-xxx-xxx-xxx.us-west-1.compute.amazonaws.com:5000/sample/app:1.0.20"
command := fmt.Sprintf("docker run -i --rm -t %s /bin/bash -c 'cat /etc/hosts'", tag)
View gist:9627518
<html>
<head>
<style type="text/css">
table table {
width: 600px !important;
}
table div + div { /* main content */
width: 65%;
float: left;
}
You can’t perform that action at this time.