Skip to content

Instantly share code, notes, and snippets.

View t1minator's full-sized avatar
🗯️

Tim Broyles t1minator

🗯️
View GitHub Profile
@t1minator
t1minator / mqtt_test.go
Created April 20, 2021 16:02 — forked from atotto/mqtt_test.go
github.com/eclipse/paho.mqtt.golang example
package mqtt_test
import (
"sync"
"testing"
mqtt "github.com/eclipse/paho.mqtt.golang"
)
func TestMqttPubSub(t *testing.T) {
@t1minator
t1minator / gencert.go
Created September 8, 2021 20:17
Generate a self-signed certificate in Go
package main
import (
"bytes"
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"crypto/x509/pkix"