Skip to content

Instantly share code, notes, and snippets.

View mlforcada's full-sized avatar

Mikel L. Forcada mlforcada

View GitHub Profile
@mlforcada
mlforcada / line-of-sight.py
Last active June 16, 2025 21:14
pynomo nomograph for line of sight
"""
ex_type1_nomo_1.py
Simple nomogram of type 1: F1 + F2 + F3 = 0
Copyright (C) 2007-2009 Leif Roschier
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
#!/bin/bash
# Generate a regular expression for amateur radio call signs
# Mikel L. Forcada 2025
# Public domain software
# strict or lax matching
strict="yes"
# strict = ITU https://www.itu.int/pub/R-REG-RR-2024, section III, article 19
# change to "no" or anything else if you want to match callsigns such as E7W, D4A or very long call signs
@mlforcada
mlforcada / fedi-mutuals-callsigns.py
Created January 3, 2025 07:59
Scrape callsigns of ham radio folks from your fedi mutuals (modified)
# Find callsigns of all the ham radio folks you are mutuals with on fedi (may only work with Mastodon)
# and produce a list so you can add them to HamAlert or something.
# Ian Renton, January 2025
# Public Domain software
# Mods by Mikel Forcada (new callsign regular expression, and workaround as
# re.findall(CALLSIGN_REGEX, display_name) did not work well with parentheses in that
# regular expression)
import re
import requests