Skip to content

Instantly share code, notes, and snippets.

@defanator
defanator / alloy-collect-bundle.sh
Last active August 7, 2025 17:28
collect alloy support bundle from k8s deployment of grafana-k8s-monitoring helm
#!/usr/bin/env bash
# vim:sw=4:ts=4:et:
set -euo pipefail
SELF=$(basename "$0")
TS=$(TZ=UTC date "+%Y%m%d%H%M%S")
DESTDIR="alloy-support-bundles"
NAMESPACE="monitoring"
@defanator
defanator / convert-p12-to-json.sh
Created December 1, 2025 17:49
Script to convert PFX / PKCS#12 bundle to JSON
#!/usr/bin/env bash
set -euo pipefail
usage() {
cat <<EOF
usage: $(basename "$0") bundle.p12 outfile.json
EOF
exit 0
}
@defanator
defanator / vmware-fusion-serial-console-howto.txt
Created January 21, 2026 01:51
VMware Fusion serial console
Guide - https://community.broadcom.com/vmware-cloud-foundation/communities/community-home/digestviewer/viewthread?MessageKey=ccd772d2-c10e-4bbc-87f1-228fa577e19f&CommunityKey=0c3a2021-5113-4ad1-af9e-018f5da40bc0
VMX settings:
serial0.present = "TRUE"
serial0.yieldOnMsrRead = "TRUE"
serial0.fileType = "network"
serial0.fileName = "telnet://:7777"
After these are in place, boot the VM, make sure to add e.g. "console=ttyS0" to boot options, and
telnet to 127.0.0.1:7777 to interact with the VM.