Skip to content

Instantly share code, notes, and snippets.

@peddamat
peddamat / komorebi_named_pipe.py
Last active March 7, 2023 18:06 — forked from da-rth/komorebi_named_pipe.py
An example of how to have komorebi subscribe and send events to a named pipe in python
import win32pipe
import win32file
import pywintypes
import subprocess
import json
import time
KOMOREBI_BUFF_SIZE = 64 * 1024
KOMOREBI_PIPE_NAME = "yasb"
import socket
import threading
import socketserver
import time
import nRF24L01p
class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
"""Thread class"""
def handle(self):
while 1:
@peddamat
peddamat / TCP_Server.py
Last active December 19, 2015 10:29 — forked from klalle/nRF24L01p.py
import socket
import threading
import socketserver
import time
import nRF24L01p
class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
"""Thread class"""
def handle(self):
while 1: