Skip to content

Instantly share code, notes, and snippets.

View steipete's full-sized avatar
🌴
On vacation

Peter Steinberger steipete

🌴
On vacation
View GitHub Profile
@steipete
steipete / tauri_traffic_light_positioner_plugin.rs
Created September 1, 2025 20:18 — forked from charrondev/tauri_traffic_light_positioner_plugin.rs
This code describes a mechanism to adjust traffic light positioning on MacOS with Tauri 2.x
use objc::{msg_send, sel, sel_impl};
use rand::{distributions::Alphanumeric, Rng};
use tauri::{
plugin::{Builder, TauriPlugin},
Manager, Runtime, Window,
}; // 0.8
const WINDOW_CONTROL_PAD_X: f64 = 15.0;
const WINDOW_CONTROL_PAD_Y: f64 = 23.0;
export const GET = apiHandlers.withAdminAuth(async (request) => {
const url = new URL(request.url);
const sampleCount = Math.min(Number(url.searchParams.get('samples')) || 20, 100);
const includeQueries = url.searchParams.get('queries')?.split(',') || Object.keys(standardTestQueries);
// Create instances for both drivers
const postgresDb = createKyselyWithDriver('postgres');
const neonDb = createKyselyWithDriver('neon');
try {
#!/usr/bin/env bun
"use strict";
const fs = require("fs");
const { execSync } = require("child_process");
const path = require("path");
// ANSI color constants
const c = {
cy: '\033[36m', // cyan

Claude Fans Threw a Funeral for Anthropic's Retired AI Model

By Kylie Robison
Business | August 5, 2025

Roughly 200 people gathered in San Francisco on Saturday to mourn the loss of Claude 3 Sonnet, an older AI model that Anthropic recently killed.


On July 21 at 9 am PT, Anthropic retired Claude 3 Sonnet, a lightweight model known for being quick and cost-effective. On Saturday, in a large warehouse in San Francisco's SOMA district, more than 200 people gathered to mourn its passing.

@steipete
steipete / opencode.json
Last active August 28, 2025 16:11
How to configure opencode with Cerebras Qwen 3 Coder 480B (it's so fast!)
{
"$schema": "https://opencode.ai/config.json",
"model": "cerebras/qwen-3-coder-480b",
"provider": {
"cerebras": {
"api": "https://api.cerebras.ai/v1",
"npm": "@ai-sdk/openai-compatible",
"name": "Cerebras",
"env": [],
"options": {
<summary><strong>🤖 Detailed Setup Guide for AI Agents</strong></summary>
## Complete Setup Instructions for Self-Hosting Qwen3-Coder-480B
This guide provides step-by-step instructions for AI agents to set up Qwen3-Coder-480B on Vast.ai with maximum context window.
### Prerequisites
- Vast.ai account with billing configured
- SSH client installed
- 2-3 hours for initial setup
@steipete
steipete / claude.md
Created July 3, 2025 12:27
VibeTunnel Terminal Title Management

VibeTunnel Terminal Title Management

When working in VibeTunnel sessions, actively use the vt title command to communicate your current actions and progress:

Usage

vt title "Current action - project context"

Guidelines

@steipete
steipete / gemini.md
Created June 29, 2025 09:38
gemini.md to teach Claude to use google's gemini cli as his tool

Using Gemini CLI for Large Codebase Analysis

When analyzing large codebases or multiple files that might exceed context limits, use the Gemini CLI with its massive context window. Use gemini -p to leverage Google Gemini's large context capacity.

File and Directory Inclusion Syntax

Use the @ syntax to include files and directories in your Gemini prompts. The paths should be relative to WHERE you run the gemini command:

Examples:

@steipete
steipete / xcode-agent-manual.md
Created June 26, 2025 11:56
Xcode instructions as alternative to XcodeBuildMCP, using built-in cli commands, axe and the new xcsentinel

Xcode Agent Command-Line Manual

This document is the complete guide for interacting with Xcode projects, simulators, and devices using a powerful, native command-line toolchain. This manual supersedes any MCP-based approach by providing direct access to a more robust and efficient set of tools.

The primary tools are xcsentinel for build orchestration and log management, and axe for UI automation.

1. Installation

These tools must be installed on the system. Use Homebrew for installation.

@steipete
steipete / XcodeBuild.md
Created June 26, 2025 11:18
XcodeBuildMCP but converted to a markdown.

xcode-manual.md

# Xcode and Swift Command-Line Manual for Agents

This document provides a concise guide to performing common Xcode and Swift development tasks using terminal commands. It is intended to be a direct, actionable reference for AI agents, replacing the need for an MCP.

## 1. Project and Workspace Operations

### Listing Schemes, Configurations, and Targets