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
| # 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 |
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 |
This cheat sheet provides a detailed overview of the exposed lifecycle events and available commands (and entrypoints) of the Serverless framework, that can be hooked by plugins (internal and external ones). The document is structured by the commands invoked by the user.
Lifecycle events are shown as the globally available outer events (all providers) and sub lifecycle events that are provider specific in the called order. Currently only the AWS provider is shown. If you have information about the other provider,
| # fix the fucking touch bar | |
| # Stick this in your zshrc or bash_profile and call it when | |
| # basic computer controls stop working for no good reason. | |
| function ftftb { | |
| pkill "Touch Bar agent" | |
| killall ControlStrip | |
| } |