Skip to content

Instantly share code, notes, and snippets.

View torabkheslat's full-sized avatar

Sassan torabkheslat torabkheslat

View GitHub Profile
@rickybrent
rickybrent / evsieve.sh
Last active May 2, 2024 17:48
tex shura + laptop right-shift + esc to tilde, caps to ctrl for evsieve
#!/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"
@mjf
mjf / haproxy-postgres-binary-checks.cfg
Last active October 24, 2023 15:09
HAProxy TCP Binary Check for Postgres Replica Instance
# 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