Skip to content

Instantly share code, notes, and snippets.

View SebbiUltimate's full-sized avatar

SebbiUltimate

View GitHub Profile
@SebbiUltimate
SebbiUltimate / custom_routes-manifests-init.pp
Created August 12, 2022 20:33
Puppet Module for EL9 (RHEL 9, Rocky 9, CentOS 9, AlmaLinux 9, etc.) NetworkManager routing configuration
class custom_routes($routes = {}) {
$routes.each |String $interface, Array $ifroutes| {
$ifroutes.each |$i, $val| {
ini_setting { "route-${interface}-${i}":
ensure => present,
path => "/etc/NetworkManager/system-connections/${interface}.nmconnection",
section => 'ipv4',
setting => "route${i}",
value => $val,
notify => Exec["reload-NM-${interface}"]
@SebbiUltimate
SebbiUltimate / usbattach.py
Created July 11, 2020 10:39
Unraid USB Device Auto Attach Tool - Create usbdevices.cfg in the same folder containing the device names one per line
#!/usr/bin/python
# Unraid USB Device Auto Attach Tool, Made By SebbiUltimate 2020
import sys
import os
import re
import subprocess
import xml.etree.ElementTree as ET
def getDeviceCfg():
with open(os.path.abspath(os.path.dirname(sys.argv[0]))+'/usbdevices.cfg') as f: