Skip to content

Instantly share code, notes, and snippets.

View thimslugga's full-sized avatar
:octocat:

Adam Kaminski thimslugga

:octocat:
View GitHub Profile
@greenstevester
greenstevester / how-to-setup-ollama-on-a-macmini.md
Last active April 17, 2026 01:23
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
#!/usr/bin/env bash
set -euo pipefail
# patch-claude-code.sh — Rebalance Claude Code prompts to fix corner-cutting behavior
#
# What this does:
# Patches the npm-installed @anthropic-ai/claude-code cli.js to rebalance
# system prompt instructions that cause the model to cut corners, simplify
# excessively, and defer complicated work.
#
@potomak
potomak / claude-code-agent-playbook.md
Last active March 27, 2026 13:49
Claude Code Agent Playbook — how to bootstrap autonomous agents with Claude Code

Claude Code Agent Playbook

A distilled guide for bootstrapping autonomous agents on top of Claude Code.

TL;DR: An agent is a directory with a CLAUDE.md that gives Claude a role, a startup/shutdown ritual, and a map of files and skills. The rest is just files.


Table of Contents

@fuzzbuster
fuzzbuster / macos_bootstrap.sh
Last active April 13, 2026 15:47
bootstrap.sh - macOS 輕量終端開發環境一鍵安裝腳本
#!/usr/bin/env bash
#
# bootstrap.sh - macOS 輕量終端開發環境一鍵安裝腳本
# 包含:Ghostty + zellij + yazi + lazygit + fastfetch + Neovim/LazyVim + 現代工具 + oh-my-zsh
# 語言環境:Python(uv/pipx)、Go、Rust(rustup)、Java(Liberica 20 Full+JavaFX)、Node(pnpm+bun)、Ruby
#
# 用法:curl -fsSL https://gist.githubusercontent.com/fuzzbuster/a117689823ba87c27437a44129253dcb/raw/1b2e930ad152a7ceb9fbb7df581b304e2d1685a0/macos_bootstrap.sh | bash
# 或 bash bootstrap.sh
#
# 可重複執行,不會重複安裝或破壞既有配置
@enachb
enachb / claude-code-presentation.md
Last active March 27, 2026 14:34
Claude Code Extension Points - Team Presentation

Claude Code Extension Points

A Team Presentation (30-45 min)


Agenda

  1. Prerequisites & Setup (5 min)
  2. What is Claude Code? (5 min)
  3. Extension Points Overview (5 min)
@hx-natthawat
hx-natthawat / zsh-setup-guide.md
Last active March 19, 2026 16:55
Ultimate Zsh Dev Setup with Pastel Colors + AI - nvm (lazy), Git, Oh My Zsh, Nerd Fonts, bat, fzf, eza, difftastic, GitHub Copilot CLI | 100+ shortcuts

Ultimate Zsh Development Environment Setup

A complete guide to set up a modern, powerful terminal environment for developers on macOS.

🎯 What You'll Get

  • Dual Theme System - Cyberpunk (neon) & Pastel (soft) themes with instant switching
  • nvm - Node Version Manager with lazy-loading (50-60% faster startup)
  • Git - Fully configured with delta, difftastic, and 40+ aliases
  • Oh My Zsh - 8 powerful plugins
@firsttris
firsttris / Bazzite-VSCode-Dev-Setup.md
Last active April 3, 2026 06:41
A technical guide to bridging the Flatpak sandbox for VS Code on Bazzite. It covers using host-spawn for Podman Dev Container support and configuring D-Bus permissions for KWallet/Copilot integration.

VS Code Flatpak Setup: Podman & KWallet (Bazzite/KDE)

This guide explains how to grant the Flatpak version of Visual Studio Code access to Podman (for Dev Containers) and the KWallet keyring (for GitHub Copilot) on Bazzite KDE.

1. Enabling Podman for Flatpak VS Code

Since VS Code runs in a sandbox, it cannot directly access the host's Podman binary. We use host-spawn to bridge this gap.

Binary Preparation

Python Project Setup

Install UV

UNIX OS

To install:

curl -LsSf https://astral.sh/uv/install.sh | sh
@jacobbrugh
jacobbrugh / BootstrapUtils.psm1
Last active April 13, 2026 15:47
@jacobpbrugh's dotfiles bootstrap script
#Requires -Version 5.1
<#
.SYNOPSIS
BootstrapUtils - Reusable PowerShell utilities for Windows bootstrap and configuration
.DESCRIPTION
This module provides common utilities for:
- Logging with consistent formatting
- Admin privilege management
- Scoop package manager operations
@kenn
kenn / how-to-use.md
Last active November 29, 2025 17:33
SHA1-hulud Supply Chain Attack Scanner

SHA1-hulud Supply Chain Attack Scanner

A bash script to detect indicators of compromise from the SHA1-hulud npm supply chain attack.

Background

SHA1-hulud is a supply chain attack targeting npm packages discovered in late 2025. Attackers compromise legitimate npm maintainer accounts and publish malicious versions that execute code during npm install.

Reference: https://thehackernews.com/2025/11/second-sha1-hulud-wave-affects-25000.html