fs_awake.py is one of the tools I've coded recently. It's a wrapper around caffeinate (a macOS utility that helps prevent your computer from sleeping, which is particularly useful when it's locked, plugged in, and in clamshell mode). The script makes it easier to set how long to keep the computer awake, letting you specify the duration in hours, including decimal values, while providing updates on its progress and the time remaining.
Code: Select all
$ python3 ./fs_awake.py 0.002
β fs_awake active for 00:00:07 (PID 41146, flags: <none>, reporting: on bar advance)
Ends at: 2026-11-26 21:31:17
[21:31:10] [ββββββββββββββββββββββββββββββ] 14.3% remaining: 00:00:06
[21:31:11] [ββββββββββββββββββββββββββββββ] 28.6% remaining: 00:00:05
[21:31:13] [ββββββββββββββββββββββββββββββ] 42.9% remaining: 00:00:04
[21:31:14] [ββββββββββββββββββββββββββββββ] 57.1% remaining: 00:00:03
[21:31:15] [ββββββββββββββββββββββββββββββ] 71.4% remaining: 00:00:02
[21:31:16] [ββββββββββββββββββββββββββββββ] 85.7% remaining: 00:00:01
β
Done β fs_awake finished at 2026-11-26 21:31:17fs_agenda.py and fs_agenda.sublime-syntax is a bit more interesting. I just wanted to use the agenda module in Sublime Text's OrgExtended plugin, but the plugin had become a bit outdated. After patching it here and there, I got frustrated with maintaining it and decided to create my own write-and-forget agenda tool tailored to my exact needs instead. It takes one or more agenda files and either prints an agenda summary or embeds that summary in the main file.
Code: Select all
$ python3 ./fs_agenda.py ./demo.age.txt
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
OVERDUE : ! 2026-11-10 (-16d) Car Technical Inspection (STK) (:40)
! 2026-11-15 (-11d) Submit Quarterly Tax Form @finance (:41)
! 2026-11-20 (-6d) Renew Internet Contract (:42)
! 2026-11-24 (-2d) Send Invoice to Client @work (:43)
------------------------------------------------------------------------------
BACKLOG : [ ] Organize digital photo archive (:31)
[ ] Research ergonomic office chairs (:32)
[ ] Buy winter windshield washer fluid (:33)
[ ] Clean out coffee grinder (:34)
[ ] Read "Designing Data-Intensive Applications" (:35)
[ ] Declutter entryway shoe rack (:36)
[ ] Call grandma to catch up (:37)
==============================================================================
Thu 26 Nov TODAY : --
Fri 27 Nov +1d : --
Sat 28 Nov +2d : * Name Day (RenΓ©) [1y] (:44)
* Pay Rent & Utilities #11 [1m] (:45)
Sun 29 Nov +3d : * Wedding Anniversary [1y] (:46)
--- Week 49 ------------------------------------------------------------------
Mon 30 Nov +4d : * Weekly Backup Check #5 [1w] (:47)
Tue 01 Dec +5d : --
Wed 02 Dec +6d : * Alex's Birthday #31 [1y] (:48)
==============================================================================
LATER : - 2026-12-10 (+14d) Car Technical Inspection (STK) @car (:49)
- 2026-12-15 (+19d) Renew Passport (:50)
- 2026-12-20 (+24d) Annual Domain & Hosting Renewal (:51)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Undated Backlog
[ ] Organize digital photo archive
[ ] Research ergonomic office chairs
[ ] Buy winter windshield washer fluid
[ ] Clean out coffee grinder
[ ] Read "Designing Data-Intensive Applications"
[ ] Declutter entryway shoe rack
[ ] Call grandma to catch up
## Continuous Timeline
[ ] 2026-11-10 Car Technical Inspection (STK)
[ ] 2026-11-15 Submit Quarterly Tax Form {warn:7d tag:finance}
[ ] 2026-11-20 Renew Internet Contract {warn:7d}
[ ] 2026-11-24 Send Invoice to Client {warn:3d tag:work}
[ ] 2026-11-28 Name Day (RenΓ©) {type:event every:1y warn:7d}
[ ] 2026-01-28 Pay Rent & Utilities {type:event every:1m show:count warn:5d}
[ ] 2026-11-29 Wedding Anniversary {type:event every:1y show:age warn:14d}
[ ] 2026-11-02 Weekly Backup Check {type:event every:1w show:count warn:5d}
[ ] 1995-12-02 Alex's Birthday {type:event every:1y show:age warn:14d}
[ ] 2026-12-10 Car Technical Inspection (STK) {warn:21d tag:car}
[ ] 2026-12-15 Renew Passport {warn:30d}
[ ] 2026-12-20 Annual Domain & Hosting Renewal {warn:30d until:2030-12-20}
[ ] 1962-05-14 Mom's Birthday {type:event every:1y show:age warn:14d}
# Intentional Syntax Errors (for testing PARSE ERRORS)
#[ ] 1990-07-04 Friend's Birthday {type:event every:1yr show:age}
#[ ] 2026-02-30 Dentist Appointment