Skip to content

Instantly share code, notes, and snippets.

View TKasperczyk's full-sized avatar

Tomasz Kasperczyk TKasperczyk

  • Compile - Tomasz Kasperczyk
  • Poland
  • 06:09 (UTC +02:00)
View GitHub Profile
@TKasperczyk
TKasperczyk / claude-teams
Created May 2, 2026 06:43
kitty-tmux-shim: Run Claude Code agent teams natively in Kitty terminal without tmux. Translates tmux commands to kitty @ remote control.
#!/usr/bin/env bash
# claude-teams -- Launch Claude Code with agent teams support in Kitty.
#
# This wrapper fakes a tmux environment so Claude Code's TmuxBackend
# activates, then intercepts all tmux commands via kitty-tmux-shim,
# translating them to kitty @ remote control calls.
#
# Usage: claude-teams [claude args...]
# Example: claude-teams --model opus
@TKasperczyk
TKasperczyk / claude_usage.py
Created April 30, 2026 12:12
Poll Claude Code OAuth usage limits (5h/7d/sonnet/opus utilization). Uses undocumented Anthropic OAuth endpoint -- may break without notice. Reads tokens from ~/.claude/.credentials.json, caches 5min to avoid 429s.
#!/usr/bin/env python3
"""Poll Claude Code OAuth usage limits. Caches aggressively to avoid 429s."""
import json
import os
import sys
import time
from datetime import datetime, timezone
from pathlib import Path
from urllib.request import Request, urlopen
@TKasperczyk
TKasperczyk / privacy-policy.md
Created March 20, 2026 22:30
DeoXR Privacy Policy

DeoXR Privacy Policy

Last updated: March 18, 2026

Overview

DeoXR is a VR video player for Android and Android XR. It connects to user-provided video sources and plays VR content locally on your device. DeoXR does not collect, transmit, or share any personal data with the developer or any third party.

Data Storage

@TKasperczyk
TKasperczyk / gpt-review
Last active December 25, 2025 20:10
CLI tool for deep code review using OpenAI's gpt-5.2-pro with configurable review types (security, architecture, performance, general)
#!/usr/bin/env -S deno run --allow-read --allow-net --allow-env
import { expandGlob } from "https://deno.land/std@0.224.0/fs/expand_glob.ts";
const REVIEW_PROMPTS: Record<string, string> = {
general: `You are a senior software engineer conducting a thorough code review. Analyze the provided codebase for:
- Code quality and maintainability
- Potential bugs and edge cases
- Performance issues
- Security vulnerabilities
@TKasperczyk
TKasperczyk / codex_cc_workflow_skill.md
Last active February 9, 2026 12:48
It's a Claude Code skill that helps it use Codex effectively to implement features, review the implementation, and apply fixes
name codex-workflow
description General-purpose Codex-powered implementation and review workflow. Use for non-trivial feature implementation with built-in code review. Emphasizes no-duplication, simplicity, and pattern consistency.
version 1.4.0

Codex Implementation & Review Workflow

Orchestrates feature implementation and code review using Codex MCP, with optional claude-context semantic search integration.

@TKasperczyk
TKasperczyk / link-agent-docs.sh
Created November 25, 2025 11:29
Bash utility that recursively links documentation files in nested directories (e.g. AGENTS.md -> CLAUDE.md for AI assistants) with dry-run mode and safety checks
<script lang="ts">
import { Button } from "$shadcn/button";
import { Popover, PopoverContent, PopoverTrigger } from "$shadcn/popover";
import Check from "lucide-svelte/icons/check";
import Palette from "lucide-svelte/icons/palette";
import Moon from "lucide-svelte/icons/moon";
import Sun from "lucide-svelte/icons/sun";
import { onMount } from "svelte";
import { colorThemes } from "$lib/config/theme";
@TKasperczyk
TKasperczyk / runServer.sh
Last active August 1, 2019 11:14
Runs as many proxy server instances as specified
#!/bin/bash
# USAGE: ./runServer.sh PORT MARK COUNT
# PORT - the initial TCP port that will be incremented for each server instance
# MARK - the initial fwmark that will be incremented for each server instance
# COUNT - the total number of server instances to run
die() { echo "$*"; exit 1; }
if [ -z "$1" ]; then die "No initial port specified"; fi
if [ -z "$2" ]; then die "No initial mark specified"; fi
@TKasperczyk
TKasperczyk / server.js
Last active March 2, 2020 17:30
Proxy server
//Requires http-proxy
//Usage: node server.js <port>
const httpProxy = require('http-proxy');
const http = require('http');
const url = require('url');
const net = require('net');
//Check if the port was supplied
const port = process.argv[2];
@TKasperczyk
TKasperczyk / configureNetwork.sh
Last active July 31, 2019 16:22
An exemplary network configuration for a single proxy server
# Configuration for a single proxy server instance
ip addr add 10.0.0.2/30 dev eth0
ip rule add fwmark 500 table 500 prio 500
ip route add default via 10.0.0.1/30 table 500