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
Z‑Image Turbo is a bit different from “classic” Stable Diffusion, so a lot of old prompting habits don’t quite apply. I’ll walk through how to prompt it deeply and safely, with special focus on controlling content (nudity, stereotypes, unwanted artifacts) even though the model does not support traditional negative prompts at all. ([Hugging Face][1])
Key facts that matter for prompting:
| # the man page for tmutil | |
| man tmutil | |
| # calculate drift on backups (cpu / io intensive) | |
| tmutil calculatedrift backup_folder | |
| # list backups | |
| tmutil listbackups | |
| # set backup destination |
Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.
See the credits and also special thanks in below.
Before this gist has been forked, AgentOak made original gist on November 13 2019 and it was last updated on May 5 2021.
From now on, this forked gist is maintained by Martin Eesmaa since 17 September 2022. I joined to yt-dlp Discord server on 3rd April 2026 with my Discord username: martineesmaa.
Last updated: 20 August 2026
This is the setup that worked for me after half a day of hacking around and chasing rabbit holes down old forum posts and open & closed Github issues.
Problem: While Go integration with VS Code is pretty slick in general, I needed to
pass compile-time build flags, e.g., -tags foo[^1] to go build and go run
directives, and I wanted to be able to properly debug with breakpoints etc. While there
are some promising tutorials out there like this on Digital Ocean and on Log Rocket it turned
out that one of the first things they both say to do is add the Delve extension to VS Code,
This Gist is based on Self Signed Certificate with Custom Root CA gist.
It adds the use of AWS KMS to generate and decrypt the Root CA private key, so that this key does not need to be stored in plaintext. Instead, the key is stored encrypted, and is being decrypted using AWS KMS only when needed.
Create symmetic CMK (customer-managed key) and give it an alias of alias/root-ca-encrypting-key that will be used later
to reference to it:
If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.
| #!/bin/sh | |
| sudo ps aux | grep Netskope | grep -v grep | awk '{ print "kill -9", $2 }' | sudo sh | |
| echo '[✓] Kill Netskope Process' | |
| sudo rm -rf /Applications/Remove\ Netskope\ Client.app | |
| echo '[✓] Removed Remove Netskope Client.app' | |
| sudo rm -rf /Library/Application\ Support/Netskope | |
| echo '[✓] Removed Agent of Netskope Client.app' |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "os" | |
| "os/signal" | |
| "syscall" |
| #!/usr/bin/env python | |
| # fsck secneo | |
| from __future__ import print_function | |
| from unicorn import * | |
| from unicorn.arm_const import * | |
| from capstone import * | |
| import binascii | |
| DEBUG = False |