This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testhelpers | |
import ( | |
"context" | |
"fmt" | |
"net/http" | |
"os" | |
"testing" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
++ mktemp XXXXX.yml | |
+ cfg=OoInq.yml | |
+ echo ' | |
namespaces: | |
- id: 0 | |
name: endpoints | |
dsn: memory' | |
+ go build -tags sqlite . | |
+ keto_server_pid=49779 | |
+ ./keto serve -c OoInq.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# original source: https://dev.widemeadows.de/2014/06/29/read-gps-logs-from-canmore-gt-740fl-on-linux-using-gpsbabel/ | |
# export from device | |
sudo gpsbabel -i skytraq,baud=115200 -f /dev/ttyACM0 -o gpx -F tracks.gpx | |
# delete on device | |
sudo gpsbabel -i skytraq,erase,no-output -f /dev/ttyACM0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package migratest | |
import ( | |
"github.com/ory/x/sqlcon/dockertest" | |
"github.com/stretchr/testify/assert" | |
"github.com/stretchr/testify/require" | |
"testing" | |
) | |
func TestMigrations(t *testing.T) { |