Skip to content

Instantly share code, notes, and snippets.

View robertgzr's full-sized avatar
🐧

Robert Günzler robertgzr

🐧
View GitHub Profile
@robertgzr
robertgzr / install.sh
Last active August 27, 2018 16:34
tridactyl native_messenger + pyenv mods
#!/usr/bin/env bash
set -e
echoerr() {
red="\033[31m"
normal="\e[0m"
echo -e "$red$@$normal" >&2
}
@robertgzr
robertgzr / delta_test.go
Last active October 31, 2018 15:32
delta tests
package image
import (
"context"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"testing"
@robertgzr
robertgzr / README.md
Last active March 31, 2019 19:18
user.js

userscripts for greasemonkey

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a47d797208 cve-mem-test_work "/usr/bin/entry.sh /…" 7 minutes ago Up 7 minutes cve-mem-test_work_1
caa1f5b3e988 balena/armv7hf-supervisor:v9.0.1 "./entry.sh" 2 hours ago Up About an hour (healthy) resin_supervisor
MemTotal: 999120 kB
MemFree: 576580 kB
MemAvailable: 752928 kB
Buffers: 42112 kB
Cached: 186488 kB
SwapCached: 0 kB
@robertgzr
robertgzr / balenaengine.diff
Created September 18, 2019 15:24
git diff d6fc6068c2e5d02e0d6ddcfb5ee5b8a73ddf23f8^..ad1ae964378edc3d61be6488ff5f973d7228edb4
diff --git a/.travis.yml b/.travis.yml
index 469d466c76..1224c8288b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,26 +1,49 @@
-language: go
-go:
- - 1.10.4
- # - 1.11.4
+language: minimal
Jul 27 13:03:00 4c1129a 08acf661e089[1422]: Idling for 2...
Jul 27 13:03:02 4c1129a 08acf661e089[1422]: Idling for 2...
Jul 27 13:03:04 4c1129a 08acf661e089[1422]: Idling for 2...
Jul 27 13:03:06 4c1129a 08acf661e089[1422]: Idling for 2...
Jul 27 13:03:06 4c1129a avahi-daemon[1401]: Got SIGTERM, quitting.
Jul 27 13:03:06 4c1129a avahi-daemon[1401]: Leaving mDNS multicast group on interface veth38f7143.IPv6 with address fe80::b090:d4ff:fe1a:a649.
Jul 27 13:03:06 4c1129a avahi-daemon[1401]: Leaving mDNS multicast group on interface br-aeb2ab5b636f.IPv6 with address fe80::42:aff:fe3b:1bdf.
Jul 27 13:03:06 4c1129a avahi-daemon[1401]: Leaving mDNS multicast group on interface br-aeb2ab5b636f.IPv4 with address 172.17.0.1.
Jul 27 13:03:06 4c1129a avahi-daemon[1401]: Leaving mDNS multicast group on interface supervisor0.IPv4 with address 10.114.104.1.
Jul 27 13:03:06 4c1129a bindmount[2315]: INFO: Unmounting /mnt/state/root-overlay/home/root/.rnd ...
Jul 09 15:46:02 7a06849 balenad[24688]: runtime/cgo: pthread_create failed: Resource temporarily unavailable
Jul 09 15:46:02 7a06849 balenad[24688]: SIGABRT: abort
Jul 09 15:46:02 7a06849 balenad[24688]: PC=0x76dd9c46 m=2 sigcode=4294967290
Jul 09 15:46:02 7a06849 balenad[24688]: goroutine 0 [idle]:
Jul 09 15:46:02 7a06849 balenad[24688]: runtime: unknown pc 0x76dd9c46
Jul 09 15:46:02 7a06849 balenad[24688]: stack: frame={sp:0x66ae98f8, fp:0x0} stack=[0x662ea1b4,0x66ae9db4)`
Jul 09 15:09:47 7a06849 balenad[1237]: runtime/cgo: pthread_create failed: Resource temporarily unavailable
Jul 09 15:09:47 7a06849 balenad[1237]: SIGABRT: abort
Jul 09 15:09:47 7a06849 balenad[1237]: PC=0x76db1c46 m=2 sigcode=4294967290
Jul 09 15:09:47 7a06849 balenad[1237]: goroutine 0 [idle]:
#!/bin/sh
# Test for the presence of
# [PATCH] ovl: fix regression caused by overlapping layers detection
# https://github.com/amir73il/linux/commit/9995d3a5ee3851a6883b0627b703e64146291453
#
# we create an overlay mount using /lower, /upper0/u and /upper0/w
# we then try to create another overlay mount that references the previous
# upperdir `upper0/u` as it's lowerdir
#
{
"Containers": [
{
"Id": "7d883a34f8a4d94f133ad6ec77cdc47fef7b66c1cbc255aa2323b936d7d24f49",
"Name": "/agitated_austin",
"Created": "2021-06-23T14:27:12.019792896Z",
"Image": "sha256:97dac40ab62861586137d45d328f95c2c08cf8fd9278284abfbf1c4225da6e15",
"Config": {
"Labels": {
"io.balena.architecture": "armv7hf",
@robertgzr
robertgzr / readme.md
Last active October 15, 2021 11:26
private registry cache

registry compose file

version: '2.4'

services:
  cache:
    image: registry:2
    network_mode: host
    environment: