Skip to content

Instantly share code, notes, and snippets.

View FlorianHeigl's full-sized avatar

Florian Heigl FlorianHeigl

View GitHub Profile
__Safe sollten sein: 0 und 1__
# HMB on/off can be done in windows registry on this key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorPort
DWORD - HMBAllocationPolicy (values: 0 = off,1 = 8MB buffer,2= 64MB buffer, 3 = firmware controled buffer size)
(per https://forums.tomshardware.com/threads/host-buffer-memory-hbm.3793910/)
neuere Windows bis 1GB je nach RAM Ausbau
autotuning hier erklaert https://community.wd.com/t/windows-24h2-wd-blue-screens/297867/144
@FlorianHeigl
FlorianHeigl / config
Last active August 25, 2025 05:48
oxidized config with netbox api as router.db backend
---
username: root
password: unused
rest: 0.0.0.0:8888
debug: false
input:
default: ssh
ssh:
secure: false
source:
@FlorianHeigl
FlorianHeigl / UPGRAYEDD
Last active August 18, 2025 02:03
State of "Enterprise" Linux in 2025
Upgrading : linux-firmware-core-999:20250611-999.41.git356f06bf.el9.noarch 46/128
Upgrading : filesystem-3.16-5.el9.x86_64 47/128
Error unpacking rpm package filesystem-3.16-5.el9.x86_64
Upgrading : dracut-057-88.git20250311.0.1.el9_6.x86_64 48/128
error: unpacking of archive failed on file /mnt: cpio: chown failed - Device or resource busy
error: filesystem-3.16-5.el9.x86_64: install failed
Upgrading : dracut-network-057-88.git20250311.0.1.el9_6.x86_64 49/128
Upgrading : dracut-squash-057-88.git20250311.0.1.el9_6.x86_64
[...]
@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