Skip to content

Instantly share code, notes, and snippets.

@sparky3387
sparky3387 / NVIDIAHDMIControl.py
Created August 17, 2019 03:01
NVIDIA HDMI Control Device (Does not work properly)
#!/usr/bin/env python
import asyncio
import websockets
import logging
import json
logger = logging.getLogger('websockets')
logger.setLevel(logging.INFO)
logger.addHandler(logging.StreamHandler())
#!/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 June 14, 2018 12:40
rTorrent patch for mylar
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.