Skip to content

Instantly share code, notes, and snippets.

View hallgren's full-sized avatar

Morgan Hallgren hallgren

View GitHub Profile
#!/bin/ash
# MQTT SETTINGS
host="<mqtt_broker_url>"
user="<user>"
password="<password>"
port=1883
topic="<topic>"
#ONION OMEGA2 GPIO PID SETTING
io_pid=0
välta koner
https://www.youtube.com/watch?v=041_Rmr2JvU
vulkan
https://www.youtube.com/watch?v=JI9eHcBAYK4
blandade övningar
https://www.youtube.com/watch?v=Yr_AqMLGD4s
tips
@hallgren
hallgren / main.go
Created February 19, 2020 15:15
sqlite mvcc
package main
import (
"database/sql"
"fmt"
_ "github.com/mattn/go-sqlite3"
"log"
"context"
"time"
"os"
package main
import (
"fmt"
"errors"
sqldriver "database/sql"
"github.com/hallgren/eventsourcing"
"github.com/davecgh/go-spew/spew"
"github.com/hallgren/eventsourcing/eventstore/sql"
"github.com/hallgren/eventsourcing/serializer/unsafe"