Skip to content

Instantly share code, notes, and snippets.

@sparky3387
sparky3387 / NVIDIAHDMIControl.py
Created Aug 17, 2019
NVIDIA HDMI Control Device (Does not work properly)
View NVIDIAHDMIControl.py
#!/usr/bin/env python
import asyncio
import websockets
import logging
import json
logger = logging.getLogger('websockets')
logger.setLevel(logging.INFO)
logger.addHandler(logging.StreamHandler())
View clean-kodidb.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
import codecs
import sys
UTF8Writer = codecs.getwriter('utf8')
sys.stdout = UTF8Writer(sys.stdout)
import tempfile
import mysql.connector
from smb.SMBConnection import SMBConnection
from smb.smb_structs import OperationFailure
@sparky3387
sparky3387 / rtorrent.patch
Created Jun 14, 2018
rTorrent patch for mylar
View rtorrent.patch
diff --git a/lib/rtorrent/__init__.py b/lib/rtorrent/__init__.py
index 7044f71..1bd28b0 100644
--- a/lib/rtorrent/__init__.py
+++ b/lib/rtorrent/__init__.py
@@ -74,7 +74,9 @@ class RTorrent:
if m.is_retriever() and m.is_available(self)]
m = rtorrent.rpc.Multicall(self)
- m.add("d.multicall", view, "d.get_hash=",
+ # multicall2 wants .. something .. as its first argument. It accepts a blank string, so let's go with that.