Skip to content

Instantly share code, notes, and snippets.

View shirmanov's full-sized avatar
๐Ÿ’ญ
open to new opportunities

Leonid Shirmanov shirmanov

๐Ÿ’ญ
open to new opportunities
  • RBI Group
  • SPb, Russia
  • 14:58 (UTC +03:00)
View GitHub Profile
@greenstevester
greenstevester / how-to-setup-ollama-on-a-macmini.md
Last active May 13, 2026 01: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
use active_call::media::engine::StreamEngine;
use active_call::media::processor::Processor;
use active_call::media::track::TrackPacketSender;
use active_call::media::{AudioFrame, Samples, TrackId};
use anyhow::Result;
use axum::body::Body;
use axum::extract::Path;
use axum::response::{IntoResponse, Response};
use bytes::Bytes;
use flate2::Compression;
@GeekTrainer
GeekTrainer / Dockerfile.sandbox
Last active April 27, 2026 08:58
Docker Sandbox setup for GitHub Copilot CLI โ€” reusable template with pre-installed deps on ext4
# Base image for Copilot CLI sandbox
FROM docker/sandbox-templates:copilot
USER root
# CUSTOMIZE: Install system-level dependencies your project needs.
# Examples:
# Python/Flask:
# RUN apt-get update && apt-get install -y --no-install-recommends \
# python3-flask python3-sqlalchemy && rm -rf /var/lib/apt/lists/*
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@staghado
staghado / deepseek_ocr2_benchmark.py
Created January 27, 2026 14:47
Run DeepSeek-OCR-2 on OlmOCR-bench
#!/usr/bin/env python3
"""
DeepSeek-OCR-2 markdown extraction for olmocr-bench.
Generates markdown files from images. For scoring, see: https://github.com/allenai/olmocr
config:
Prompt: "<image>\n<|grounding|>Convert the document to markdown."
Repeats: 3
@ruvnet
ruvnet / claude-flow-vs-claude-code.md
Last active April 10, 2026 16:22
Architectural Comparison: Claude Flow V3 vs Claude Code TeammateTool

Architectural Comparison: Claude Flow V3 vs Claude Code TeammateTool

Date: 2026-01-25 Analysis: Side-by-side comparison of Claude Flow V3 swarm architecture (developed by rUv) and Claude Code's TeammateTool (discovered in v2.1.19)


Executive Summary

A detailed analysis reveals striking architectural similarities between Claude Flow V3's swarm system and Claude Code's TeammateTool. The terminology differs, but the core concepts, data structures, and workflows are nearly identical.

Claude Code TeammateTool - Source Code Analysis

This is not a proposal. This documents existing but hidden functionality found in Claude Code v2.1.19 binary, plus speculation on how it could be used.


Executive Summary

TeammateTool already exists in Claude Code. We extracted this from the compiled binary at ~/.local/share/claude/versions/2.1.19 using strings analysis. The feature is fully implemented but gated behind feature flags (I9() && qFB()).

โ•ญโ”€โ”€โ”€ Claude Code v2.1.12 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ โ”‚ Tips for getting started โ”‚
โ”‚ Welcome back Jonny! โ”‚ Run /init to create a CLAUDE.md file with instructions for Claude โ”‚
โ”‚ โ”‚ โ”‚
โ”‚ โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚
โ”‚ โ–โ–›โ–ˆโ–ˆโ–ˆโ–œโ–Œ โ”‚ Recent activity
# Create a new worktree and branch from within current git directory.
ga() {
if [[ -z "$1" ]]; then
echo "Usage: ga [branch name]"
exit 1
fi
local branch="$1"
local base="$(basename "$PWD")"
local path="../${base}--${branch}"
@yrashk
yrashk / inferal-workspace-architecture.md
Last active January 27, 2026 08:57
Inferal Workspace Architecture