April 2026 TLDR setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive
- Mac mini with Apple Silicon (M1/M2/M3/M4/M5)
- At least 16GB unified memory for Gemma 4 (default 8B)
- macOS with Homebrew installed
April 2026 TLDR setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive
| #!/usr/bin/env bun | |
| /** | |
| * ============================================================ | |
| * PROOF: Anthropic is specifically blocking "OpenCode" | |
| * in Claude Code OAuth system prompts | |
| * ============================================================ | |
| * | |
| * Video covering this script here: https://www.youtube.com/watch?v=G9YX6StP2-M | |
| * | |
| * This script demonstrates that Anthropic has specifically blocked |
As written by Susan Fowler.
| const readline = require('readline'); | |
| const fs = require('fs'); | |
| const rl = readline.createInterface({ | |
| input: process.stdin, | |
| output: process.stdout | |
| }); | |
| const filename = "chat_export.txt"; | |
| let datetime_str = ""; |
It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive
There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support
to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder
which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!
| (*Adapted from https://stackoverflow.com/a/39820517*) | |
| set r to "" -- an empty variable for appending a string | |
| tell application "Safari" | |
| repeat with w in windows -- loop for each window, w is a variable which contain the window object | |
| if exists current tab of w then -- is a valid browser window | |
| repeat with t in tabs of w -- loop for each tab of this window, , t is a variable which contain the tab object | |
| -- get the title (name) of this tab and get the url of this tab | |
| tell t to set r to r & "- [ ] [" & name & "](" & URL & ")" & linefeed -- append a line to the variable (r) | |
| (* | |
| 'linefeed' mean a line break |
| import Database from 'better-sqlite3'; | |
| import { createDatabaseClient } from './proxy.ts'; | |
| // 1) Create an in-memory DB and your table(s). | |
| const db = new Database(':memory:'); | |
| db.exec(` | |
| CREATE TABLE users ( | |
| id TEXT PRIMARY KEY, | |
| data JSON | |
| ); |
| <?php | |
| var_dump( | |
| pg_connect(" | |
| host=localhost | |
| port=5432 | |
| dbname=postgres | |
| user=postgres | |
| password=root | |
| ") |
| <?php | |
| /** | |
| * Database Connection Tester | |
| * A quick-and-dirty standalone script for checking PHP’s connection to a | |
| * MySQL (or MariaDB) or PostgreSQL database. | |
| * | |
| * To use, enter the settings below and run the following from your terminal: | |
| * ``` | |
| * php -f db-test.php |