Skip to content

Instantly share code, notes, and snippets.

@gigoh
gigoh / camera-viewer.sh
Last active September 10, 2022 06:10
Rear view camera viewer for Raspberry Pi
#!/bin/sh
NULL_DEV=/dev/null
ZERO_DEV=/dev/zero
#FB_DEV=/dev/fb1
FB_DEV=/dev/fb0
BL_DEV=/sys/class/backlight/rpi_backlight/brightness
CAM_DEV=/dev/video0
#NO_SIGNAL="89f107f"
NO_SIGNAL="ff0c0df9"
@gigoh
gigoh / autossh
Last active July 27, 2021 16:38 — forked from adrianharabula/autossh
autossh startup script for openrc init on alpine linux
#!/sbin/openrc-run
#/etc/init.d/autossh
AUTOSSH_PIDFILE="/var/run/$SVCNAME.pid"
export AUTOSSH_PIDFILE
name="$SVCNAME"
command="/usr/bin/autossh"
command_args="-M 0 -f -T -N CONNECTION"
pidfile="$AUTOSSH_PIDFILE"