This file contains 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
#!/bin/bash | |
# https://github.com/KarsMulder/evsieve | |
if [[ ! -z "$1" ]]; then | |
if [[ "${1:0:4}" == "pci-" || "${1:0:9}" == "platform-" ]]; then | |
input="/dev/input/by-path/$1" | |
else | |
input="/dev/input/by-id/$1" | |
fi | |
elif [[ -e "/dev/input/by-id/usb-04d9_USB-HID_Keyboard_000000000407-event-kbd" ]]; then | |
input="/dev/input/by-id/usb-04d9_USB-HID_Keyboard_000000000407-event-kbd" |
This file contains 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
# HAProxy TCP Binary Check for Postgres Replica Instance | |
# Copyright (C) "2021" Matous Jan Fialka, <https://mjf.cz/> | |
# Released under the terms of "The MIT License" | |
# https://www.postgresql.org/docs/current/protocol-message-formats.html | |
backend postgres | |
bind :5432 |