Skip to content

Instantly share code, notes, and snippets.

View brookst's full-sized avatar

Tim Brooks brookst

View GitHub Profile
@brookst
brookst / nodata_alarm.ps1
Last active September 6, 2023 16:59
No data alarm for PowerShell
# Check data is being written
# Tim Brooks Sept 2023 <[email protected]>
#
# Specify a hashmap of Contacts with WhatsApp numbers and APIKeys
# E.g. > $Contacts=@{'+271234567890'=123456}; .\nodata_alarm.ps1
#
# Complete the enrolment described below to get an APIKey for each number:
# https://www.callmebot.com/blog/free-api-whatsapp-messages/
$FileName = "foo.txt" #File that should grow in size
@brookst
brookst / fs5000.py
Last active March 4, 2025 18:31
Serial interface to Bosean FS-5000 radiation detector
#!/usr/bin/env python3
__author__ = "Tim Brooks"
__email__ = "[email protected]"
__date__ = "2024-04-23"
import datetime
from enum import Enum, Flag
import logging
import serial
import serial.tools.list_ports as list_ports