Skip to content

Instantly share code, notes, and snippets.

root@pandora:~# kubectl get servers -o yaml
apiVersion: v1
- apiVersion:
  kind: Server
    creationTimestamp: "2021-07-16T05:05:21Z"
rgl /
Last active Jul 15, 2021
talosctl cluster create fails with error getting family information for ethtool: netlink receive: no such file or directory

This is how I tried to execute talosctl cluster create in a Ubuntu 20.04 host.

Install ethtool:

# apt-get install -y ethtool

# ethtool eth1 # with the virtio network interface type
Settings for eth1:
	Supported ports: [ ]
rgl / Find-OpenHandle.ps1
Created Jul 9, 2021
uses sysinternals handle.exe to find/list the current open handles
View Find-OpenHandle.ps1
function Find-OpenHandle([string]$Filter = '') {
# handle.exe returns all the open files grouped by process as:
# ------------------------------------------------------------------------------
# System pid: 4 \<unable to open process>
# 720: Section \Win32kCrossSessionGlobals
# ------------------------------------------------------------------------------
# svchost.exe pid: 1208 NT AUTHORITY\SYSTEM
# 198: File (R-D) C:\Windows\System32\en-US\svchost.exe.mui
# the first line has the following fields:
# svchost.exe pid: 1208 NT AUTHORITY\SYSTEM
rgl /
Created Jan 27, 2021
show all the chocolatey packages installation parameters / arguments
# see
Add-Type -AssemblyName System.Security
Get-ChildItem `
    -Path "$env:ChocolateyInstall\.chocolatey" `
    -Filter .arguments `
    -Recurse `
    | ForEach-Object {
        $name = $_.Directory.BaseName
        $data = [System.Text.Encoding]::UTF8.GetString(

This is a quick&dirty way to get started with skopeo in Ubuntu 20.04.

Install go.

Install skopeo dependencies:

sudo apt-get install -y git-core build-essential pkg-config libgpgme-dev libassuan-dev libbtrfs-dev libdevmapper-dev
rgl /
Last active Jan 12, 2021
Enroll certificates in UEFI OVMF Secure Boot

List the secure boot trust stores:

apt-get install -y efitools

To take ownership of the system by following the next steps.

Create our own Platform Key (PK), Key Exchange Key (KEK), and Code Signing CAs:

rgl / http-server-shutdown.go
Created Dec 23, 2020
go http server with graceful shutdown
View http-server-shutdown.go
package main
import (
View vagrant.log
INFO global: Vagrant version: 2.2.9
INFO global: Ruby version: 2.6.6
INFO global: RubyGems version: 3.0.3
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/bin/vagrant"
WARN global: resolv replacement has not been enabled!
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/kernel_v1/plugin.rb
rgl /
Last active May 13, 2020
run emulated arm under qemu

This will show how to run an emulated arm64 virtual machine under qemu.

It first shows how to launch a typical amd64 virtual machine to make sure we have cloud-init working.

Then it shows how to launch the arm64 (aka aarch64) virtual machine.

NB In my humble i3-3245 amd64 host this is way too slow to run anything useful as it takes about 6m to allow you to finally login, and after that, its slow too. You are really better off with a proper physical arm64 machine, like: