Skip to content

Instantly share code, notes, and snippets.

View drforbin's full-sized avatar
😍

Merlyn Cousins drforbin

😍
View GitHub Profile
@drforbin
drforbin / XWinRelay.c
Created January 14, 2018 22:33
XWindows relay for relaying keypresses from one window to another.
/* gcc -Wall -O3 -o XWinRelay XWinRelay.c -lX11 -lXi */
/* Program to relay root key events to another window */
/* Programmed by Merlyn (Drforbin) Cousins */
/* One suggested use is programs using Wine which */
/* need keyboard input when Wine is not focused */
/* This program uses XInput2 Extension for access to */
/* Root Events. */
#include <stdio.h>
#include <stdlib.h>
@drforbin
drforbin / tcprelay.py
Created June 16, 2016 06:30
tcprelay.py enhanced with options and logging
#!/usr/local/bin/python
import socket
import select
import time
import sys
import getopt
# Changing the buffer_size and delay, you can improve the speed and bandwidth.
# But when buffer get to high or delay go too down, you can broke things