Skip to content

Instantly share code, notes, and snippets.

@nudzo
nudzo / rancher_cleanup.py
Last active November 2, 2022 00:27
Script for cleanup of leftover Rancher resources after uninstall.
import kubernetes.client
import kubernetes.config
CATTLE_NS = [
"cattle-fleet-clusters-system",
"cattle-fleet-local-system",
"cattle-fleet-system",
"cattle-global-data",
"cattle-global-nt",
"cattle-impersonation-system",

Keybase proof

I hereby claim:

  • I am nudzo on github.
  • I am nudzo (https://keybase.io/nudzo) on keybase.
  • I have a public key ASAAXGSnfVCAJTrWMjqghr8DeNMAhDASnvKJe3iBFOGhWwo

To claim this, I am signing this object:

@nudzo
nudzo / snmp-trap-mailer.md
Last active August 29, 2015 14:26
SNMP trap mailer from snmptrapd. Formating for Zabbix SNMP trap reader.
  • example focused to SUN iLOM MIBs
  • start with all MIBs imported, thus env. MIBS=ALL or cmdline snmptrapd -m ALL ...
  • start snmptrapd -C -c /etc/net-snmp/snmp/snmptrapd.conf -A -Lf /var/log/snmp.traps for example
  • Zabbix trap collector sucking traps from /var/log/snmp.traps
  • this way using on Ubuntu and Solaris 11
  • by default mails deliverred to snmptraps mail alias on localhost
  • mails are multipart plain text and html