Skip to content

Instantly share code, notes, and snippets.

View psymonryan's full-sized avatar

Simon Ryan psymonryan

View GitHub Profile
@psymonryan
psymonryan / semantic_chunker.py
Created November 11, 2026 01:38
Semantic Chunker - small local model on long transcripts
#!/opt/local/bin/uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "langchain-openai>=0.3.27",
# "python-dotenv>=1.1.1",
# "scikit-learn>=1.8.0",
# "numpy>=2.3.3",
# ]
# ///
@psymonryan
psymonryan / macos_snapshot_fix.md
Last active November 10, 2026 22:17
Update error: A snapshot is currently set to boot that is not the currently booted snapshot [solved]

Fix for "A snapshot is currently set to boot that is not the currently booted snapshot" issue

I spent a while figuring this one out. Here is what I did to render it [Solved] on my Dad's new Sonoma iMac. (BTW: I caused this problem in the first place by enabling his nfsd service, then adding and tagging the snapshot as bootable)

  1. Boot into recovery mode, open the terminal and disable SIP

    csrutil disable

  2. Reboot at this point back into Recovery mode and this time open up DiskUtil