Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeremy Schlatter jeremyschlatter

View GitHub Profile
@jeremyschlatter
jeremyschlatter / trezor.go
Created Feb 6, 2019
Trezor integration in Go
View trezor.go
package main
import (
"bytes"
"encoding/hex"
"flag"
"fmt"
"math/big"
"os"
@jeremyschlatter
jeremyschlatter / merge.go
Created Jan 29, 2019
Merge Go coverage profiles from multiple test runs
View merge.go
package main
import (
"flag"
"fmt"
"os"
"golang.org/x/tools/cover"
)
View keybase.md

Keybase proof

I hereby claim:

  • I am jeremyschlatter on github.
  • I am jeremyschlatter (https://keybase.io/jeremyschlatter) on keybase.
  • I have a public key ASAH79VFu_Hd8yfjVA_-iYLywJYrRxI001po_HgDVVL0WAo

To claim this, I am signing this object:

@jeremyschlatter
jeremyschlatter / Jupyter-React-integration.ipynb
Created Jul 25, 2017
Render React inline from a Jupyter notebook cell
View Jupyter-React-integration.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jeremyschlatter
jeremyschlatter / restart-docker.sh
Created Jul 13, 2015
For those times when boot2docker says 'error in run: Failed to start machine "boot2docker-vm": exit status 1'
View restart-docker.sh
#!/bin/bash
# Based on http://stackoverflow.com/a/27564185/3072514
VBoxManage startvm "/Users/jeremy/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vbox"
VBoxManage controlvm "/Users/jeremy/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vbox" acpipowerbutton
echo 'Press enter when the machine has powered off'
read
echo 'You should see "State": "poweroff" below'
boot2docker -v info | grep poweroff