Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import RPi.GPIO as GPIO
import time
import subprocess
GPIO.setmode(GPIO.BOARD)
# we will use the pin numbering to match the pins on the Pi, instead of the
# GPIO pin outs (makes it easier to keep track of things)
# use the same pin that is used for the reset button (one button to rule them all!)
#! /bin/sh
### BEGIN INIT INFO
# Provides: pi_shutdown
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: S
# Default-Stop:
# Short-Description: Shutdown on GPIO trigger
# Description: Python script listens for GPIO and runs shutdown command
### END INIT INFO

Synergy between Linux and Mac Os X

sharing a mouse and keyboard between two computers

A quick writeup for a working setup (Linux is Server, Mac is Client)

synergy.conf:

section: screens
    linux:
 mac:
@flowolf
flowolf / README.md
Last active June 20, 2022 21:06
Homeassistant Samsung smart TV IR codes

Homeassistant IR codes for Samsung Smart TV

IR codes came from here

code was adapted from here

run:

python3 ir_codes.py ./samsung_tv_codes.csv