Skip to content

Instantly share code, notes, and snippets.

@MobileDevCLI
MobileDevCLI / scott_iran.ipynb
Created April 16, 2026 01:45
Lo-Fi Scott Adams Iran Take — Google Colab T4
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MobileDevCLI
MobileDevCLI / scott_studio_run.sh
Created April 15, 2026 23:45
Scott Adams voice — paste into Lightning mcli-training-l4 studio: curl -sL <raw> | bash
#!/bin/bash
# scott_studio_run.sh — paste into Lightning studio `mcli-training-l4` terminal.
# Follows VOICE_CREATION_GUIDE.md exactly. Same pattern as Clarkson v6.
set -e
cd ~/repos/mcli-voice
git pull -q
# Pull Scott source audio (published as GitHub release asset)
gh release download v0.4-scott-adams-source -p scott_16k.wav -O /tmp/scott_src.wav --clobber 2>/dev/null || \
curl -sL -H "Authorization: token $(gh auth token)" \
@MobileDevCLI
MobileDevCLI / scott_voice_005_main.py
Created April 15, 2026 22:19
scott_voice v5 — self-contained. Paste into Lightning studio terminal: curl -sL <raw> | python -
#!/usr/bin/env python3
"""scott_voice v5 — FULLY self-contained. Paste into Lightning studio terminal:
curl -sL <raw_gist_url> | python -
Embeds ref.wav + gen_text. Whisper transcribes 12s ref, F5-TTS synthesizes."""
import base64, os, subprocess, sys, json, time
from pathlib import Path
HERE = Path.home() / "scott_voice_run"
HERE.mkdir(exist_ok=True)
print(f"[sv] working in {HERE}", flush=True)
@MobileDevCLI
MobileDevCLI / scott_voice_002_main.py
Created April 15, 2026 21:49
scott_voice_001 — Lo-Fi Scott Adams voice build job. Run on Lightning L4 / Kaggle P100.
#!/usr/bin/env python3
"""scott_voice_001 — self-contained. Runs polish.py on Lightning L4."""
import base64, os, subprocess, sys
from pathlib import Path
HERE = Path(__file__).parent.resolve()
WORK = HERE / "work"; WORK.mkdir(exist_ok=True)
FILES = {
"polish.py": "IyEvdXNyL2Jpbi9lbnYgcHl0aG9uMwoiIiIKcG9saXNoLnB5IOKAlCB0aGUgZW50aXJlIE1DTEkgVm9pY2UgcG9saXNoaW5nIHBpcGVsaW5lLCBhcyBvbmUgcmVwcm9kdWNpYmxlIHNjcmlwdC4KCkNhcHR1cmVzIGV2ZXJ5IGxlc3NvbiBmcm9tIHRoZSAyMDI2LTA0LTE1IHNlc3Npb246CiAgMS4gUHVsbCBzb3VyY2UgYXVkaW8gZnJvbSBZb3VUdWJlIChvciBhbnkgVVJML2ZpbGUpCiAgMi4gV2hpc3Blci10cmFuc2NyaWJlIGZ1bGwgdGltZWxpbmUKICAzLiBEZW11Y3MtaXNvbGF0ZSB2b2NhbHMgKHJlbW92ZSBtdXNpYyArIGVuZ2luZSArIGFtYmllbnQpCiAgNC4gU2NvcmUgZXZlcnkgdHJhbnNjcmliZWQgc2VnbWVudCBvbiAoUk1TLCBwaXRjaCB2YXJpYW5jZSwgV1BNLCBkdXJhdGlvbiBmaXQpCiAgNS4gUGljayB0b3AtTiBjYW5kaWRhdGUgcmVmZXJlbmNlIHdpbmRvd3MKICA2LiBTZWNvbmQtcGFzcyBjbGVhbnVwIG9uIGVhY2ggcmVmIChub2lzZXJlZHVjZSwgcXVpZXRlc3QtZnJhbWUgbm9pc2UgcHJvZmlsZSwgZ2VudGxlIHByb3BfZGVjcmVhc2U9MC42KQogIDcuIEF