This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import selectors | |
| from ctypes import Structure, c_int32, c_int64, c_uint16 | |
| EV_KEY = 1 | |
| EV_KEY_VALUE = {0: '\x1b[31mreleased\x1b[0m', | |
| 1: '\x1b[32mdepressed\x1b[0m', | |
| 2: '\x1b[33mrepeated\x1b[0m'} | |
| EV_KEY_VALUE_UNKNOWN = '\x1b[37;41;5munknown\x1b[0m' | |
| EV_DEVICE = "/dev/input/event5" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # proxychains shotcut | |
| proxy-command-line() { | |
| [[ -z $BUFFER ]] && zle up-history | |
| [[ $BUFFER == sudo\ * ]] && LBUFFER="sudo proxychains ${LBUFFER/sudo /}" | |
| [[ $BUFFER != proxychains\ * ]] && [[ $BUFFER != sudo\ proxychains\ * ]] && LBUFFER="proxychains $LBUFFER" | |
| } | |
| zle -N proxy-command-line | |
| # Defined shortcut keys: [Esc] [Esc] [p] | |
| bindkey "\e\ep" proxy-command-line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import selectors | |
| import socket | |
| from ctypes import BigEndianStructure, Structure, c_int32, c_int64, c_uint16 | |
| from enum import IntEnum | |
| from functools import partial | |
| EV_KEY = 1 | |
| EV_KEY_VALUE = {0: '\x1b[31mreleased\x1b[0m', | |
| 1: '\x1b[32mdepressed\x1b[0m', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdbool.h> | |
| #include <stddef.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #include <emscripten.h> | |
| #define SCREEN_W 64 |
OlderNewer