Skip to content

Instantly share code, notes, and snippets.

@ehazlett
ehazlett / gist:ea67a231285d444d6e42783fd3230d58
Created April 21, 2020 15:05
OS X Parallels synergy fix
defaults write 'com.parallels.Parallels Desktop' 'HID Host Hook.Allowed Sources' "synergy"
defaults write 'com.parallels.Parallels Desktop' 'HID Host Hook.Allowed Sources' "synergyc"
setup-xorg-base
apk add -U \
xf86-input-libinput \
plata-theme \
ttf-hack \
firefox \
ttf-cantarell \
gnome \
gnome-terminal \
func withCheckpointMounts(c *container.Container) containerd.CheckpointOpts {
return func(ctx context.Context, client *containerd.Client, _ *containers.Container, index *imagespec.Index, _ *options.CheckpointOptions) error {
for _, m := range c.MountPoints {
// tarstream of content
// a tmpdir is created to use as the blank comparison directory for the diff
tmpdir, err := ioutil.TempDir("", "container-data-")
if err != nil {
return err
}
defer os.RemoveAll(tmpdir)
package utils
import (
"bytes"
"os"
"testing"
)
var (
testCgroup = `11:rdma:/
http://www.realtek.com.tw/downloads/downloadsCheck.aspx?Langid=1&PNid=14&PFid=23&Level=4&Conn=3&DownTypeID=3&GetDown=false
docker ps -a -q | % { docker rm $_ }

Keybase proof

I hereby claim:

  • I am ehazlett on github.
  • I am ehazlett (https://keybase.io/ehazlett) on keybase.
  • I have a public key whose fingerprint is 7DA6 9608 322E 4779 5045 D754 5F50 D7C2 A00B 51FE

To claim this, I am signing this object:

// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'canary',
./bin/ctr.exe --address \\.\pipe\containerd-containerd run --runtime windows --layers "C:\ProgramData\docker\windowsfilter\371a5f489e6eb487a66e97423de88e3482ede1b542529da9a590ea4a44ac8696" --layers C:\ProgramData\docker\windowsfilter\0940fef74de9345acabac936949034afd43ccc449285661c86ebf5ecc21d41a7" -t --id myls19 powershell

Current Interlock:

Set the desired port in the INTERLOCK_DATA env var: -e INTERLOCK_DATA='{"port":80}'

Interlock NG:

Set the desired port in a label: --label interlock.port=80