Skip to content

Instantly share code, notes, and snippets.

View sdp8483's full-sized avatar

Sam Perry sdp8483

View GitHub Profile
@krdarrah
krdarrah / powerOutage.cpp
Created June 29, 2021 16:53
Particle Boron Power Outage Detector
String str1,str2;
bool onUSB = false;
bool onBattery = false;
bool lowBattery = false;
unsigned long pwrCheckTimeStart;//to check power every 10sec
void setup() {
// INITIAL POWER CHECK
int powerSource = System.powerSource();
@cpldcpu
cpldcpu / LowPowerLEDflasher.c
Created February 7, 2021 02:10
Low Power LED Flasher on PFS154
/* ---------------------------------------------------
Ultra Low Power LED flasher
LED is connected to PA4 and is high active.
Jan 16th, 2021, CPLDCPU - Initial version
---------------------------------------------------- */
#include <stdint.h>
@krdarrah
krdarrah / ATMEGA328P_TEST.ino
Last active March 29, 2025 09:17 — forked from speters/uid.ino
Arduino atmega328p unique id/serial number
//found this code here
//https://gist.github.com/speters/f889faec42b510052a6ab4be437d38ca
//Purpose is to simply run a memory check on ATMEGA238P to test for counterfeit parts
#include <avr/boot.h>
#define SIGRD 5
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
@RamonWill
RamonWill / TkinterTemplate.py
Last active July 31, 2025 13:44
Tkinter GUI template
import tkinter as tk
from tkinter import messagebox
from tkinter import ttk
"""
Useful Links:
https://stackoverflow.com/questions/7546050/switch-between-two-frames-in-tkinter Most useful in my opinion
https://www.tutorialspoint.com/python/python_gui_programming.htm
https://anzeljg.github.io/rin2/book2/2405/docs/tkinter/index.html
@ednisley
ednisley / Tek Circuit Computer.gcmc
Created December 14, 2019 16:26
GCMC + Bash source code: Homage Tektronix Circuit Computer
// Tektronix Circuit Computer Reproduction
// Ed Nisley KE4ZNU - 2019-11
//-----
// Library routines
include("tracepath.inc.gcmc");
include("engrave.inc.gcmc");
TekOD = to_mm(7.75in); // orginal Tek Circuit Computer diameter
@geosharma
geosharma / aurutils_inst_conf.md
Last active September 10, 2025 02:40
Arch Linux: aurutils installation and configuration

aurutils installation and configuration

This is not a getting started guide, just notes to myself. Due to my limited knowledge there could be mistakes and better ways to do things. I have configured aurutils to the best of my knowledge after reading the manpages and forums. Please refer to aurutils(7) manpages for installation and configuration.

Reference: aurutils(7)

Install aurutils

Install the aurutils using the normal AUR package installation procedure. Until I found aurutils, I used to create a separate directory ~/aur/ for all AUR packages.

@OmarArain
OmarArain / xldate_to_datetime.py
Created April 3, 2014 17:48
convert Excel serial date to python datetime.datetime
import datetime
def xldate_to_datetime(xldate):
temp = datetime.datetime(1900, 1, 1)
delta = datetime.timedelta(days=xldate)
return temp+delta
@jheasly
jheasly / rtlsdr-osx.txt
Last active February 26, 2021 04:02 — forked from 0xabad1dea/rtlsdr-osx.txt
Build RTL-SDR on OSX with no tears using homebrew. Forked from https://gist.github.com/0xabad1dea/5777726, a macports solution.
rtl-sdr build notes for OSX
using macports http://www.macports.org/
see http://sdr.osmocom.org/trac/wiki/rtl-sdr
brew install cmake
brew install libusb
brew install pkgconfig
brew install sox # for easy audio
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/
@cstrahan
cstrahan / README.md
Last active January 31, 2025 20:13
Binary transfer script for minicom.

Configure minicom with minicom -s and enter the “File transfer protocols” section. You can add a section there called “binary”, point it at your file, and specify:

Field Value
Name Binary
Program bin-xfer -o %l
Name Y
U/D U
FullScr Y