Skip to content

Instantly share code, notes, and snippets.

View sleventyeleven's full-sized avatar

Michael Contino sleventyeleven

View GitHub Profile
@sleventyeleven
sleventyeleven / lora_weather_decoder.py
Created July 19, 2026 06:46
simple pyserial script to receive encoded as weather data over LoRa and decode it locally
import re
import serial
import threading
import time
# Configure the serial port.
# Replace '/dev/ttyUSB0' with your actual port:
# Windows: 'COM3', 'COM4', etc.
# Mac/Linux: '/dev/ttyUSB0', '/dev/ttyAMA0', etc.
SERIAL_PORT = 'COM3'
@sleventyeleven
sleventyeleven / lora_weather_encoder.py
Last active July 19, 2026 07:03
simple pyserial script to send commands encoded as weather data over LoRa
import serial
import time
# Configure the serial port.
# Replace '/dev/ttyUSB0' with your actual port:
# Windows: 'COM3', 'COM4', etc.
# Mac/Linux: '/dev/ttyUSB0', '/dev/ttyAMA0', etc.
SERIAL_PORT = '/dev/ttyS4'
BAUD_RATE = 115200
target_addr = 10
@sleventyeleven
sleventyeleven / lora_testing.py
Created July 19, 2026 04:07
Lora Testing Script via pyserial
import serial
import threading
import time
# Configure the serial port.
# Replace '/dev/ttyUSB0' with your actual port:
# Windows: 'COM3', 'COM4', etc.
# Mac/Linux: '/dev/ttyUSB0', '/dev/ttyAMA0', etc.
SERIAL_PORT = '/dev/ttyUSB4'
BAUD_RATE = 115200
{
"root": "/etc/step-ca/certs/root_ca.crt",
"federatedRoots": null,
"crt": "/etc/step-ca/certs/intermediate_ca.crt",
"key": "/etc/step-ca/secrets/intermediate_ca_key",
"address": ":443",
"insecureAddress": ":8080",
"dnsNames": [
"ca"
],
@sleventyeleven
sleventyeleven / app.py
Created October 21, 2025 13:10
simple flask app to control the Radxa Zero 3w control pins for skeleton animatronic
import gpiod
from flask import Flask, render_template, request
# --- Configuration ---
# Find the chip and line using the `gpiofind` command.
# For example, to find PIN_11, run: `gpiofind PIN_11`
# This might output something like "gpiochip0 11".
GPIO_CHIP_NAME = "gpiochip3"
# --- Flask App Initialization ---
@sleventyeleven
sleventyeleven / keybase.md
Created May 27, 2016 00:39
Keybase Proof

Keybase proof

I hereby claim:

  • I am sleventyeleven on github.
  • I am sleventyeleven (https://keybase.io/sleventyeleven) on keybase.
  • I have a public key whose fingerprint is 87EA 43F9 FA83 34DD 1565 122C 41DB 24BC D62B D2B8

To claim this, I am signing this object: