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
Mike Karnjanaprakorn @mikekarnj
Over time, I've changed my views on wealth. When I was in my early 20s, I wrote it off as something I would figure out later. When I started a company at 27, I figured that my stock as founder would be good enough. I was wrong in both. Here's what I've learned…
| ... | |
| apply from: './flavors.gradle' | |
| ... | |
| android { | |
| buildTypes { | |
| productFlavors { | |
| project.flavors.each { flavor, config -> | |
| "$flavor" { | |
| dimension 'scope' | |
| if (flavor != 'full') { |
| /** | |
| * This gist was inspired from https://gist.github.com/homam/8646090 which I wanted to work when uploading an image from | |
| * a base64 string. | |
| * Updated to use Promise (bluebird) | |
| * Web: https://mayneweb.com | |
| * | |
| * @param {string} base64 Data | |
| * @return {string} Image url | |
| */ | |
| const imageUpload = async (base64) => { |
| files.download('example.txt') # from colab to browser download |
| import MessageQueue from 'react-native/Libraries/BatchedBridge/MessageQueue.js'; | |
| const WHITELIST = ['UIManager']; | |
| const NOOP = () => { }; | |
| let queue = []; | |
| let now = 0; | |
| export default { | |
| start() { | |
| MessageQueue.spy(msg => { |
| $assemblies=( | |
| "System" | |
| ) | |
| $source=@" | |
| using System; | |
| namespace Helloworld | |
| { | |
| public static class Hello{ | |
| public static void Main(){ |
Markdown files allow embedding images in it. However it requires the image to be hosted at some location and we can add the url of the image to embed it.
Example:

We can use services like imgur or other services to host the images and use the hosted URL.
| console.log(1); | |
| (_ => console.log(2))(); | |
| eval('console.log(3);'); | |
| console.log.call(null, 4); | |
| console.log.apply(null, [5]); | |
| new Function('console.log(6)')(); | |
| Reflect.apply(console.log, null, [7]) | |
| Reflect.construct(function(){console.log(8)}, []); | |
| Function.prototype.apply.call(console.log, null, [9]); | |
| Function.prototype.call.call(console.log, null, 10); |