Skip to content

Instantly share code, notes, and snippets.

View FlorianHeigl's full-sized avatar

Florian Heigl FlorianHeigl

View GitHub Profile
@FlorianHeigl
FlorianHeigl / srsly
Created August 6, 2025 21:31
get another job
```
[root@cnetbox ~]# nmcli con mod connection.id "Wired connection 2" eth2
Error: unknown connection 'connection.id'.
[root@cnetbox ~]# nmcli con mod "Wired connection 2" connection.id eth2
Warning: There is another connection with the name 'eth2'. Reference the connection by its uuid '701fb10e-1bc4-3e57-afed-70ab1bb32db0'
[root@cnetbox ~]# nmcli con delete eth2
Connection 'eth2' (01dea749-cf7b-4a9d-b8e7-2e9d6952f75e) successfully deleted.
Connection 'eth2' (701fb10e-1bc4-3e57-afed-70ab1bb32db0) successfully deleted.
[root@cnetbox ~]# nmcli con show
NAME UUID TYPE DEVICE
@FlorianHeigl
FlorianHeigl / cn7322.dts
Last active July 23, 2025 13:28
Cavium LiquidIO II / CN2360, NIC225E, CN7322 Device Tree
/dts-v1/;
/ {
#address-cells = < 0x02 >;
#size-cells = < 0x02 >;
compatible = "cavium,nic225e";
interrupt-parent = < 0x01 >;
model = "cavium,nic225e";
memory {
@FlorianHeigl
FlorianHeigl / bin_sd_clean.sh
Last active June 17, 2025 08:17
sd_clean.sh bullion sd card reformat
#!/bin/sh
#default case assumes interactive mode
interactive=1
#default case assumes no SD card wiping. Only cleaning
wipesdcard=0
#if included argumement is n or N then disable interactive mode
if [ "$1" == "n" ] || [ "$1" == "N" ]; then
interactive=0
@FlorianHeigl
FlorianHeigl / urls.txt
Last active May 24, 2025 19:29
urls file i use to feed my iso mirror in synology download staiton
# Alma
https://repo.almalinux.org/almalinux/9.6/isos/x86_64/AlmaLinux-9.6-x86_64-minimal.iso
https://repo.almalinux.org/almalinux/9.6/isos/x86_64/AlmaLinux-9.6-x86_64-dvd.iso
https://repo.almalinux.org/almalinux/8.10/isos/x86_64/AlmaLinux-8.10-x86_64-dvd.iso
# Alpine
https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/alpine-extended-3.21.3-x86_64.iso
https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/alpine-virt-3.21.3-x86_64.iso
https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/alpine-xen-3.21.3-x86_64.iso
@FlorianHeigl
FlorianHeigl / patch
Created April 26, 2025 11:14 — forked from arakashic/patch
qzfs-fix
From 06cb8310a54a222437f5a84bbbe61111435a08bf Mon Sep 17 00:00:00 2001
From: Yanfei Guo <[email protected]>
Date: Fri, 18 Apr 2025 19:48:19 +0000
Subject: [PATCH] qat: wait for in-flight req to complete before remove session
reqs in session may be still in-flight after callback returns.
This results in session remove fail with message "There are %lu
requests pending". Adding a small loop to wait for the completion
of in-flight requests.
---
@FlorianHeigl
FlorianHeigl / ipmi_fancontrol-ng
Created April 9, 2025 09:15
x3650m5 fan control with amd rocm-smi parser
#!/usr/bin/perl
use strict;
use warnings;
use List::Util qw[min max];
# IBM x3650 Port notes: This port was made in an attempt to quiet down an IBM system x3650 M4.
# The porting involved changing the raw commands, removing the get GetFanRPM as it was
# useless in my scenario and IBM lists their fans as 1A 1B 2A 2B.
# Also the imm2 mantains a partial control over the fans actual speed, for example setting
# the fans at 30% result in an actual fan speed of roughly 24%, sometimes the script
@FlorianHeigl
FlorianHeigl / check_mk_agent.busybox
Created March 26, 2025 23:35
mehr cavium files (non final)
upload fehlt
braucht eh ewig viele auffrischungen
@FlorianHeigl
FlorianHeigl / hwmon0.md
Last active March 24, 2025 18:17
Cavium CN7322 / Marvell LiquidIO II CN2360 Thermal Sensors
cn7322:/usr/lib/check_mk_agent/plugins# ls -l /sys/class/hwmon/hwmon0/
total 0
-r--r--r-- 1 root root 4096 Mar 21 15:07 alarms
lrwxrwxrwx 1 root root    0 Mar 21 15:07 device -> ../../../0-004c
-r--r--r-- 1 root root 4096 Mar 21 15:07 name
lrwxrwxrwx 1 root root    0 Mar 21 15:07 of_node -> ../../../../../../../../firmware/devicetree/base/soc@0/i2c@1180000001000/tmp@4c
drwxr-xr-x 2 root root    0 Mar 21 15:07 power
lrwxrwxrwx 1 root root    0 Mar 21 15:07 subsystem -> ../../../../../../../../class/hwmon
-rw-r--r-- 1 root root 4096 Mar 21 15:07 temp1_crit
@FlorianHeigl
FlorianHeigl / backup-netbox-docker-db.sh
Last active March 9, 2025 17:40
mediocre netbox docker backup favorable over the undecided nothing that is in place
#! /usr/bin/env bash
set -eu
. ../netbox-docker/env/postgres.env
_date=$(date +%Y%m%d%H%M)
backupdir=/backup/netbox
umask 177
# iirc this should be done by a sidecar container or something