Skip to content

Instantly share code, notes, and snippets.

@killerbees19
killerbees19 / .bash_aliases
Last active May 3, 2024 04:08
Supermicro Fan Control
alias fan-auto='systemctl start supermicro-fan-auto.timer'
alias fan-full='systemctl stop supermicro-fan-auto.timer && sleep 5 && sm fan full'
alias fan-pue2='systemctl stop supermicro-fan-auto.timer && sleep 5 && sm fan pue2'
alias fan-optimal='systemctl stop supermicro-fan-auto.timer && sleep 5 && sm fan optimal'
alias fan-heavyio='systemctl stop supermicro-fan-auto.timer && sleep 5 && sm fan heavyio'
alias fan-standard='systemctl stop supermicro-fan-auto.timer && sleep 5 && sm fan standard'
#!/usr/bin/python -u
import sys, os
import logging
from functools import partial
from collections import Mapping
from datetime import datetime
import dbus
from dbus.mainloop.glib import DBusGMainLoop
import gobject
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
inherit qmakeve
inherit daemontools
SRC_URI = " \
gitsm://github.com/osaether/dbus-tsmppt.git;tag=v${PV};protocol=https \
"
#!/usr/bin/python -u
from functools import partial
import dbus
from dbus.mainloop.glib import DBusGMainLoop
import gobject
def track(name, value):
# TODO: Do something with the value, for this example we just print it
print "{} = {:.2f}".format(name, value["Value"])