Skip to content

Instantly share code, notes, and snippets.

View jonasmalacofilho's full-sized avatar

Jonas Malaco jonasmalacofilho

View GitHub Profile
@jonasmalacofilho
jonasmalacofilho / PRIME-Z370-A.conf
Created January 21, 2024 17:29
lm-sensors configuration for the ASUS PRIME Z370-A motherboard
# lm-sensors configuration for the ASUS PRIME Z370-A motherboard
#
# Manufacturer: ASUSTeK COMPUTER INC.
# Product Name: PRIME Z370-A
# Version: Rev 1.04
# Super I/O: NCT6793D
# UEFI versions tested: 0805, 1601
#
# Recommended drivers: coretemp, nct6775
# Other Z370 boards from ASUS might use a similar setup
From 60472d84c3b438dc09461a6461e82b46a38c3b6a Mon Sep 17 00:00:00 2001
From: Roberto Marques <robertobiundo@gmail.com>
Date: Sun, 28 Jun 2020 12:33:29 +0200
Subject: [PATCH] Added experimental support for H110i GT
---
liquidctl/driver/__init__.py | 1 +
liquidctl/driver/coolit.py | 313 +++++++++++++++++++++++++++++++++++
2 files changed, 314 insertions(+)
create mode 100644 liquidctl/driver/coolit.py
From b8cadeeeeedb8b25211e5968ac681a48306d04f0 Mon Sep 17 00:00:00 2001
From: Jonas Malaco <jonas@protocubo.io>
Date: Thu, 25 Jun 2020 12:29:03 -0300
Subject: [PATCH] python-hidapi: Check that the generated extension can be
imported
Due to, in the upstream project, a custom build process and the use of
unreleased hidapi APIs, python-hidapi has broken a couple of times in
the same number of months.
#!/bin/bash
echo "The uber customizable crossfit timer"
TIMERS=(
10 "wait"
90 "right thruster" 90 "left thruster" 60 "rest"
50 "squat rotation" 10 "rest" 50 "plank rotation" 10 "rest"
50 "squat rotation" 10 "rest" 50 "plank rotation" 10 "rest"
50 "squat rotation" 10 "rest" 50 "plank rotation" 10 "rest"
@jonasmalacofilho
jonasmalacofilho / LQiNFO.py
Last active April 7, 2020 06:56
Working on LQiNFO (export liquidctl data to HWiNFO)
#!/usr/bin/env python
"""LQiNFO – export monitoring data from liquidctl devices to HWiNFO.
This is a experimental script that exports the status of all available
devices to HWiNFO.
Usage:
LQiNFO.py [options]
LQiNFO.py --help
LQiNFO.py --version
Mar 16 09:41:31 calvin FAHClient[173424]: 12:41:31:WU00:FS00:Starting
Mar 16 09:41:31 calvin FAHClient[173424]: 12:41:31:WU00:FS00:Removing old file '/var/lib/fah/work/00/logfile_01-20200315-031613.txt'
Mar 16 09:41:31 calvin FAHClient[173424]: 12:41:31:WU00:FS00:Running FahCore: /opt/fah/FAHCoreWrapper /var/lib/fah/cores/cores.foldingathome.org/v7/lin/64bit/avx/Core_a7.fah/FahCore_a7 -dir 00 -suffix 01 -version 705 -lifeline 173424 -checkpoint 15 -np 10
Mar 16 09:41:31 calvin FAHClient[173424]: 12:41:31:WU00:FS00:Started FahCore on PID 175049
Mar 16 09:41:31 calvin FAHClient[173424]: 12:41:31:WU00:FS00:Core PID:175053
Mar 16 09:41:31 calvin FAHClient[173424]: 12:41:31:WU00:FS00:FahCore 0xa7 started
Mar 16 09:41:31 calvin FAHClient[173424]: 12:41:31:WU00:FS00:0xa7:*********************** Log Started 2020-03-16T12:41:31Z ***********************
Mar 16 09:41:31 calvin FAHClient[173424]: 12:41:31:WU00:FS00:0xa7:************************** Gromacs Folding@home Core ***************************
Mar 16 09:41:31 calvi
@jonasmalacofilho
jonasmalacofilho / 0001-Implement-fan-control-for-Seasonic-E-PSUs.patch
Created November 12, 2019 13:10
[liquidctl] [PATCH] Implement fan control for Seasonic E PSUs
From 3433ce9c3752c6937ecf97300b09fa2eb343740e Mon Sep 17 00:00:00 2001
From: Jonas Malaco <jonas@protocubo.io>
Date: Sun, 13 Oct 2019 11:06:27 -0300
Subject: [PATCH] Implement fan control for Seasonic E PSUs
Uses the FAN_COMMAND_1 (0x3b) PMBus command, with the desired duty cycle
encoded in LINEAR11, and a PEC byte.
***
__version__ = '0.0.1'
import sys
if sys.platform.startswith('linux'):
try:
import hidraw
hid = hidraw
except:
pass
From e1e0f8b79b3116d10a7cefc92b2203d700806b5c Mon Sep 17 00:00:00 2001
From: Jonas Malaco <jonas@protocubo.io>
Date: Fri, 1 Nov 2019 01:38:43 +0000
Subject: [PATCH 1/2] Patch hardcoded libusb header paths in cython-hidapi
---
Formula/liquidctl.rb | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Formula/liquidctl.rb b/Formula/liquidctl.rb
@jonasmalacofilho
jonasmalacofilho / fuckuanova.py
Created July 25, 2019 12:19 — forked from TheUbuntuGuy/fuckuanova.py
Decode Anova Precision Cooker WiFi Packets
#!/usr/bin/python3
import math
f = open("rawdump.txt", "r")
for l in f.readlines():
p = 0
chars = []
chksum = 0