Skip to content

Instantly share code, notes, and snippets.

View TKasperczyk's full-sized avatar

Tomasz Kasperczyk TKasperczyk

  • Compile - Tomasz Kasperczyk
  • Poland
  • 03:26 (UTC +01:00)
View GitHub Profile
@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 January 13, 2026 20:16
It's a Claude Code skill that helps it use Codex effectively to implement features, review the implementation, and apply fixes
name description version
codex-workflow
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.
1.2.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