Skip to content

Instantly share code, notes, and snippets.

View dgarnier's full-sized avatar

Darren Garnier dgarnier

View GitHub Profile
@dgarnier
dgarnier / lg_switch_inputs.py
Created September 5, 2023 01:54 — forked from shinyquagsire23/lg_switch_inputs.py
LG DDC/CI control via python hidapi
import struct
import time
import hid
import sys
import argparse
#
# Constants
#
@dgarnier
dgarnier / nfs_add_automount.sh
Last active April 12, 2017 19:56
Get a Debian Jessie Beaglebone to mount an NFS share...
#!/bin/bash
usage="$(basename "$0") [-h] mountpoint nfs_server:directory"
while getopts ":h" opt; do
case $opt in
h)
echo $usage >&2
exit 1
;;