Skip to content

Instantly share code, notes, and snippets.

View mdkendall's full-sized avatar

Matthew Kendall mdkendall

  • Vancouver, BC, Canada
View GitHub Profile
@mdkendall
mdkendall / aiscatcher.service
Last active April 14, 2024 02:02
Install AIS-catcher and run as a service.
# AIS-catcher service for systemd
[Unit]
Description=AIS-catcher
Wants=network.target
After=network.target
[Service]
User=ais
RuntimeDirectory=aiscatcher
@mdkendall
mdkendall / install.sh
Last active October 9, 2023 05:19
Python script to display Raspberry Pi status on SSD1306-based 128x64px OLED connected via I2C
#!/bin/bash
# Prerequisite:
# Enable I2C using raspi-config if necessary
# Install I2C support, Python image library, and other support libraries.
sudo apt install -y python3-smbus i2c-tools
sudo apt install -y python3-pil
sudo apt install -y python3-pip
sudo apt install -y python3-setuptools