Skip to content

Instantly share code, notes, and snippets.

Stack trace from the terraform-provider-nutanix_v2.4.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1477688]
goroutine 251 [running]:
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmm.flattenDisk(0xc000d82480)
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmm/structure.go:300 +0x3a8
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmm.flattenDiskListHelper({0xc0011d1220, 0x2, 0x479659?}, {0xc0015b3020, 0x24}, 0x1)
github.com/terraform-providers/terraform-provider-nutanix/nutanix/services/vmm/structure.go:267 +0x9c
@Vaelatern
Vaelatern / 3mfmunge.py
Created January 16, 2026 09:23
Little utility to add Extruder information for Orcaslicer, to 3mf files created by colorscad
# /// script
# requires-python = ">=3.14"
# dependencies = [
# "lxml>=6.0.2",
# ]
# ///
# Little utility to add Extruder information for Orcaslicer, to 3mf files created by colorscad
import sys
import zipfile
import pathlib
@Vaelatern
Vaelatern / row-row-row.sh
Created October 13, 2024 17:42
Play With Keybord.... or a script!
# Row Row Row Your Boat
# Executable if you load one of these youtube videos https://www.youtube.com/@PlayWithKeyboard/videos
# "Play $TOOL using keyboard number keys"
xdotool sleep 1
xdotool sleep 1
xdotool key 1 sleep 0.75
xdotool key 1 sleep 0.75
xdotool key 1 sleep 0.75
xdotool key 2 sleep 0.3
xdotool key 3 sleep 0.75
[ 0.003][v][cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[ 0.003][v][cplayer] built on Tue Jun 23 20:21:36 UTC 2020
[ 0.003][v][cplayer] ffmpeg library versions:
[ 0.003][v][cplayer] libavutil 56.31.100
[ 0.003][v][cplayer] libavcodec 58.54.100
[ 0.003][v][cplayer] libavformat 58.29.100
[ 0.003][v][cplayer] libswscale 5.5.100
[ 0.003][v][cplayer] libavfilter 7.57.100
[ 0.003][v][cplayer] libswresample 3.5.100
[ 0.003][v][cplayer] ffmpeg version: 4.2.3
@Vaelatern
Vaelatern / api(subdir)basic.capnp.go
Created August 5, 2019 03:27
Minimum broken example for websockets.
// Code generated by capnpc-go. DO NOT EDIT.
// Not relevant to this example. Just minimum necessary code.
package spec
import (
context "golang.org/x/net/context"
capnp "zombiezen.com/go/capnproto2"
text "zombiezen.com/go/capnproto2/encoding/text"
schemas "zombiezen.com/go/capnproto2/schemas"

Keybase proof

I hereby claim:

  • I am vaelatern on github.
  • I am vaelatern (https://keybase.io/vaelatern) on keybase.
  • I have a public key ASA5XzQr0eH3kwM4w950MtZJR8EdALtJC8ZkvvtykzQdXQo

To claim this, I am signing this object:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 149.1G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1G 0 part
│ └─md0 9:0 0 1024M 0 raid1
├─sda3 8:3 0 10G 0 part
│ └─md2 9:2 0 10G 0 raid1 [SWAP]
└─sda4 8:4 0 132G 0 part
└─md1 9:1 0 131.9G 0 raid1 /
sdb 8:16 0 149.1G 0 disk