Skip to content

Instantly share code, notes, and snippets.

View jeremyschlatter's full-sized avatar

Jeremy Schlatter jeremyschlatter

View GitHub Profile
@jeremyschlatter
jeremyschlatter / restart-docker.sh
Created July 13, 2015 19:20
For those times when boot2docker says 'error in run: Failed to start machine "boot2docker-vm": exit status 1'
#!/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
@jeremyschlatter
jeremyschlatter / Jupyter-React-integration.ipynb
Created July 25, 2017 02:36
Render React inline from a Jupyter notebook cell
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

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 / merge.go
Created January 29, 2019 18:27
Merge Go coverage profiles from multiple test runs
package main
import (
"flag"
"fmt"
"os"
"golang.org/x/tools/cover"
)
@jeremyschlatter
jeremyschlatter / trezor.go
Created February 6, 2019 00:08
Trezor integration in Go
package main
import (
"bytes"
"encoding/hex"
"flag"
"fmt"
"math/big"
"os"