Skip to content

Instantly share code, notes, and snippets.

View AdamSLevy's full-sized avatar

Adam S Levy AdamSLevy

View GitHub Profile
@AdamSLevy
AdamSLevy / gist:bbdbca6b5dbae569382b0f33fef1f36d
Created October 13, 2020 20:05
docker exec kind-control-plane cat /etc/containerd/config.toml
$ docker exec kind-control-plane cat /etc/containerd/config.toml
# explicitly use v2 config format
version = 2
# set default runtime handler to v2, which has a per-pod shim
[plugins."io.containerd.grpc.v1.cri".containerd]
default_runtime_name = "runc"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
runtime_type = "io.containerd.runc.v2"
@AdamSLevy
AdamSLevy / gist:70da98ec55e7d996502cf53936e567f3
Created October 13, 2020 20:03
$ docker logs kind-control-plane
$ docker logs kind-control-plane
INFO: ensuring we can execute mount/umount even with userns-remap
INFO: remounting /sys read-only
INFO: making mounts shared
INFO: fix cgroup mounts for all subsystems
INFO: clearing and regenerating /etc/machine-id
Initializing machine ID from random generator.
INFO: faking /sys/class/dmi/id/product_name to be "kind"
INFO: faking /sys/class/dmi/id/product_uuid to be random
INFO: faking /sys/devices/virtual/dmi/id/product_uuid as well
@AdamSLevy
AdamSLevy / gist:00408c5f80766a4f2c4c78ee179e48fa
Created October 13, 2020 20:02
kind create cluster --retain
$ kind create cluster --retain
Creating cluster "kind" ...
✓ Ensuring node image (kindest/node:v1.19.1) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✗ Starting control-plane 🕹️
ERROR: failed to create cluster: failed to init node with kubeadm: command "docker exec --privileged kind-control-plane kubeadm init --skip-phases=preflight --config=/kind/kubeadm.conf --skip-token-print --v=6" failed with error: exit status 1
Command Output: I1013 18:58:09.182499 181 initconfiguration.go:200] loading configuration from "/kind/kubeadm.conf"
[config] WARNING: Ignored YAML document with GroupVersionKind kubeadm.k8s.io/v1beta2, Kind=JoinConfiguration
W1013 18:58:09.194138 181 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[aslevy@clearfog tailscale]$ sudo tailscale up
logtail started
Program starting: v0.97-45-g02c73501: []string{"tailscale", "up"}
logtail: upload: log upload of 478 bytes compressed failed: Post https://log.tailscale.io/c/tailnode.log.tailscale.io/88d69f9764c824e2e32a158804b7c643d0c405847ead8d925d10a3d40b8cdd79: dial tcp: lookup log.tailscale.io on [::1]:53: read udp [::1]:37453->[::1]:53: read: connection refused
LogID: 3c9c3aeb07a8d5478e06f61796bc965f18c249b64f4dd0085267ff2c56eac6d5
logtail: backoff: 6 msec
logtail: upload: log upload of 478 bytes compressed failed: Post https://log.tailscale.io/c/tailnode.log.tailscale.io/88d69f9764c824e2e32a158804b7c643d0c405847ead8d925d10a3d40b8cdd79: dial tcp: lookup log.tailscale.io on [::1]:53: read udp [::1]:33701->[::1]:53: read: connection refused
logtail: backoff: 51 msec
logtail: upload: log upload of 478 bytes compressed failed: Post https://log.tailscale.io/c/tailnode.log.tailscale.io/88d69f9764c824e2e32a158804b7c643d0c405847ead8d925d10a3d40b8cdd79: dial tcp: lo
@AdamSLevy
AdamSLevy / gist:289b9c0e22e8418a9dc10569778cc8dc
Last active April 1, 2020 19:58
pdf_image_render ticket
$ ./bin/pdf_image_render ./marked.up/ ../unipdf/redactor/testdata/ticket-redact-annotations.pdf
[DEBUG] parser.go:692 Pdf version 1.7
<</DecodeP"rser.go:1101 starting with "142 0 obj
[DEBUG] parser.go:1043 Updating object number for XRef table 142 -> 142
<</DecodeP"rser.go:1101 starting with "104 0 obj
[DEBUG] parser.go:1043 Updating object number for XRef table 104 -> 104
[DEBUG] renderer.go:69 Processing q
[DEBUG] renderer.go:69 Processing Do
[DEBUG] renderer.go:671 XObject form: Fm0
[DEBUG] renderer.go:69 Processing TL
[ 0.003090] MTRR variable ranges enabled:
[ 0.003092] 0 base 0080000000 mask 7F80000000 uncachable
[ 0.003094] 1 base 007C000000 mask 7FFC000000 uncachable
[ 0.003095] 2 base 007B800000 mask 7FFF800000 uncachable
[ 0.003096] 3 disabled
[ 0.003097] 4 disabled
[ 0.003097] 5 disabled
[ 0.003098] 6 disabled
[ 0.003099] 7 disabled
[ 0.003100] 8 disabled
warning: unnecessary parentheses around type
--> lib/runtime-core/src/typed_func.rs:354:44
|
354 | impl< $( $x ),* > WasmTypeList for ( $( $x ),* )
| ^^^^^^^^^^^^^ help: remove these parentheses
...
687 | impl_traits!([transparent] S1, A);
| ---------------------------------- in this macro invocation
|
= note: `#[warn(unused_parens)]` on by default
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
running 1 test
Running command: `rm` args: ["-f", "CMakeCache.txt"]
output:
status: 0
@AdamSLevy
AdamSLevy / aws-ec2-arch-linux-t3-system-logs
Created September 4, 2018 21:56
aws ec2 arch linux t3 system logs
early console in extract_kernel
input_data: 0x00000000026e53b4
input_len: 0x00000000007111b8
output: 0x0000000001000000
output_len: 0x0000000001dc7a40
kernel_total_size: 0x0000000001c62000
Decompressing Linux... Parsing ELF... done.
Booting the kernel.
[ 0.000000] Linux version 4.14.61-1-ec2-lts (builduser@steven-14802) (gcc version 8.2.1 20180730 (GCC)) #1 SMP Tue Aug 7 09:37:09 PDT 2018
{
"InstanceId": "i-00802e1e739121580",
"Output": "early console in extract_kernel\r\ninput_data: 0x00000000026e53b4\r\ninput_len: 0x00000000007111b8\r\noutput: 0x0000000001000000\r\noutput_len: 0x0000000001dc7a40\r\nkernel_total_size: 0x0000000001c62000\r\n\r\nDecompressing Linux... Parsing ELF... done.\r\nBooting the kernel.\r\n[ 0.000000] Linux version 4.14.61-1-ec2-lts (builduser@steven-14802) (gcc version 8.2.1 20180730 (GCC)) #1 SMP Tue Aug 7 09:37:09 PDT 2018\r\n[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux-ec2-lts root=UUID=13e7f246-d359-4153-8d43-73e488d2f89a rw nomodeset console=ttyS0,9600n8 earlyprintk=serial,ttyS0,9600,verbose loglevel=7\r\n[ 0.000000] KERNEL supported cpus:\r\n[ 0.000000] Intel GenuineIntel\r\n[ 0.000000] AMD AuthenticAMD\r\n[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'\r\n[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'\r\n[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: '