obsolete.computer

misc-scripts/.

As it sounds, these are just random scripts I've written (lately, with some help from so-called 'AI') that might be useful to someone, though it's unlikely.

Directory Listing

total 64K
drwxr-xr-x 2 4.0K Oct 2 15:09 ./
drwxr-xr-x 10 4.0K Dec 15 07:49 ../
-rwxr-xr-x 1 5.6K Jan 27 2025 build-code-markdown.sh
-rw-r--r-- 1 15K Feb 5 2025 c64-schedule.php
-rw-r--r-- 1 7.7K Oct 2 15:09 events-csv.php
-rwxr-xr-x 1 1.5K Jun 5 2025 ips-from-spf.py
-rw-r--r-- 1 248 Dec 5 2024 LICENSE
-rw-r--r-- 1 978 Aug 20 16:56 print-fixtures.py
-rw-r--r-- 1 1.1K Mar 19 2025 README.md
-rw-r--r-- 1 157 Jan 27 2025 summary.md
-rw-r--r-- 1 968 Jan 15 2025 sunlight-percent.py

Download

Readme

Miscellaneous Scripts

As it sounds, these are just random scripts I've written (lately, with some help from so-called 'AI') that might be useful to someone, though it's unlikely.

  1. c64-schedule.php - Intended to sit in the root of a Wordpress installation, this script generates a Commodore 64 basic program in the form of a PRG file from data queried out of the database. As it is, it grabs upcoming events from the Eventon plugin and displays them on the screen, but with a bit of modification it could display anything from a WP site.
  2. sunlight-percent.py - Shows how much of today's sunlight has passed, as a percentage. What if we replaced our current H:M:S scheme with this number?
  3. build-code-markdown.sh - Used on this very site to convert a source code tree into a markdown file tree, for presentation/browsing within a static (in my case, Pelican) web site.
  4. ips-from-spf.py - Generates a comma-separated list of IP addresses and/or networks, recursively, from a domain's SPF entry. Useful for firewall whitelists if you manage your own mail server.

License

This project is in the public domain.

Contributing changes back to this codebase and giving attribution when reusing this code are both wonderful things, but neither are necessary.

Meta