Skip to content

Instantly share code, notes, and snippets.

@cmetz
cmetz / monitor.sh
Last active July 10, 2025 07:52
simple evo-x2 monitor script using ec_probe
#!/usr/bin/env sh
while true; do
temp=$(sudo ec_probe read 0x70 | awk '{print $1}')
high_byte=$(sudo ec_probe read 0x35 | awk '{print $1}')
low_byte=$(sudo ec_probe read 0x36 | awk '{print $1}')
fan1=$((high_byte * 256 + low_byte))
high_byte=$(sudo ec_probe read 0x37 | awk '{print $1}')
low_byte=$(sudo ec_probe read 0x38 | awk '{print $1}')
@cmetz
cmetz / nebula_usb.py
Created December 14, 2020 11:02
Python Durgod K320 Nebula Hacks
import usb.core
import usb.util
import array
import time
import random
import math
import webcolors
import random
from collections import OrderedDict, namedtuple
from sys import exit