libicu-dev (PyICU dependency)
brew reinstall pkg-config icu4cbrew reinstall pkg-config icu4c| #!/usr/bin/env python3 | |
| """ | |
| TTS with Qwen3-TTS via MLX. | |
| =========================== | |
| Requirements: | |
| pip install mlx-audio soundfile numpy | |
| pip install tqdm # optional, for progress bars | |
| brew install ffmpeg |
| #!/usr/bin/env bash | |
| # Enforce strict error handling | |
| set -euo pipefail | |
| # uncomment for DEBUGGING ONLY | |
| # set -exuo pipefail | |
| # --- take package name as first arg --- |
graph LR
A["System Prompt (highest authority)"]:::sys
B["Developer / Tool Instructions<br/>(when applicable)"]:::dev
C[User Prompt]:::user
D["Conversation History<br/>(recursive influence)"]:::hist
A --> B --> C --> D
classDef sys fill:#ffddcc,stroke:#cc7744,stroke-width:2px,color:#000;| printf '%s' "$*" | jq -sRr @uri | |
| printf '%s' "$*" | xxd -p -c1 | sed 's/^/%/' | tr -d '\n' | |
| printf "\npython\n" | |
| python3 -c "import sys; print(''.join(f'%{b:02X}' for b in bytes('$*', 'utf8')))" |
| #!/usr/bin/env python3 | |
| import sys | |
| from pathlib import Path | |
| # from: https://community.openai.com/t/transcribe-lines-are-way-too-long-for-both-subtitles-and-karaoke/289059/7 | |
| print('loading whisper...', end='') | |
| import whisper | |
| from whisper.utils import get_writer |
| # in Shortcuts.app right panel (ℹ️): | |
| # [v] Use as Quick Action: | |
| # [v] Finder | |
| # Receive Files from Quick Actions | |
| # Search and add "Run Shell Script" | |
| # Shell: /usr/bin/python3 | |
| # Input: Shortcut Input | |
| # Pass Input: <as arguments> |
| #!/usr/bin/env python3 | |
| """ | |
| Professional Vedic Calendar Calculator using Skyfield | |
| Calculates Ekadashi, Purnima, and Important Fasting Dates with NASA-grade precision | |
| Installation: pip install skyfield pytz | |
| Data files download automatically on first run (~20MB) | |
| FIXED: Resolved Skyfield vector addition error in get_sun_moon_times() | |
| """ |
| import json | |
| from pathlib import Path | |
| import requests | |
| import subprocess | |
| import os | |
| import base64 | |
| from urllib.parse import urlparse | |
| # Configuration |
| // ==UserScript== | |
| // @name GDPR Cookies Unconsent | |
| // @namespace http://legbehindneck.com/unconsent | |
| // @version 1.0 | |
| // @description Uncheck all cookie consent checkboxes | |
| // @author legbehindneck | |
| // @match *://*/* | |
| // @grant none | |
| // ==/UserScript== |