Skip to content

Instantly share code, notes, and snippets.

@KaaNee
KaaNee / removeProxmoxClusterConfig.sh
Created January 18, 2025 10:30
BashScript to remove cluster-config of a proxmox-node
#!/bin/bash
# works from 6 to 8 -
# stops services, removes cluster-config from this node (regardless it's state) and restarts services again.
# - Also removing stalled clusternodes as this is leaving the cluster the 'hard' way.
systemctl stop pve-cluster corosync
pmxcfs -l
rm -rf /etc/corosync/*
rm /etc/pve/corosync.conf
killall pmxcfs
@KaaNee
KaaNee / xml-channel-convert.py
Created November 11, 2024 15:12
Converter for openhab-things-channel-xml file into Items-File Format (Python Script)
import xml.etree.ElementTree as ET
import sys
import os
# Default-Values
default_xml_file = 'data.xml'
default_channel_scope = 'replace-me'
default_channel_prefix = 'modbus:tcp:device:mydevice'
default_item_prefix = 'MyDevice_'