Skip to content

Instantly share code, notes, and snippets.

@greenstevester
greenstevester / how-to-setup-ollama-on-a-macmini.md
Last active April 3, 2026 20:56
April 2026 TLDR setup for Ollama + Gemma 4 12B on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive

April 2026 TLDR setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive

April 2026 TLDR Setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon)

Prerequisites

  • Mac mini with Apple Silicon (M1/M2/M3/M4/M5)
  • At least 16GB unified memory for Gemma 4 (default 8B)
  • macOS with Homebrew installed
@riverar
riverar / focus_assist.cpp
Created October 30, 2018 00:02
Determine state of Quiet Hours/Focus Assist with WNF
//
// Not to be used in any serious manner
//
#include <Windows.h>
#include <iostream>
#define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0)
typedef struct _WNF_STATE_NAME
{
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 3, 2026 20:50
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under the Quests tab
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@Haseeb-Qureshi
Haseeb-Qureshi / claude-code-harness-deep-dive.md
Created March 31, 2026 21:26
Inside the Claude Code source

Inside the Claude Code source

Anthropic's Claude Code CLI source code leaked onto GitHub recently. All of it. About 1,900 files and a lot of TypeScript.

I read through the key modules. What follows is a breakdown of the surprising parts: how the system actually works, where Anthropic made clever engineering choices, and where their approach diverges from OpenAI's Codex in ways you wouldn't guess from using either tool.

Lifecycle of a request

Here's what happens when you type a message into Claude Code:

@iam-veeramalla
iam-veeramalla / claude_with_ollama.md
Last active April 3, 2026 20:48
claude code integration with ollama to use local models

Run Claude with the power of Local LLMs using Ollama

Install Ollama

curl -fsSL https://ollama.com/install.sh | sh

Pull the Model

ollama pull glm-4.7-flash # or gpt-oss:20b (for better performance)

@FranklinYu
FranklinYu / README.markdown
Last active April 3, 2026 20:46
links for old versions of Docker for Mac (inspired by docker/for-mac#1120)

links for old versions of Docker for Mac

Deprecated

Docker provides download links in release note. They promised that

(we) will also include download links in release notes for future releases.

Note:

@sts10
sts10 / rust-command-line-utilities.markdown
Last active April 3, 2026 20:44
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@joerodgers
joerodgers / Get-TenantSiteOwnerReport.ps1
Last active April 3, 2026 20:43
Exports all owner and admin email addresses for all SharePoint Online sites for all geo-locations and uploads the results in .csv format to a document library.
#requires -modules "PnP.PowerShell"
# This script requires the following Azure AD App Principal application permissions:
# - SharePoint > Sites.ReadWrite.All
# - Microsoft Graph > Group.Read.All
$clientId = $env:O365_CLIENTID
$thumbprint = $env:O365_THUMBPRINT
$tenantName = $env:O365_TENANT