Skip to content

Instantly share code, notes, and snippets.

View tarasyarema's full-sized avatar
🐱
:3

2pac tarasyarema

🐱
:3
View GitHub Profile
@tarasyarema
tarasyarema / metrics.tsx
Created January 19, 2026 19:22
Github Org Metrics
import React, { useState, useMemo } from 'react';
import { ComposedChart, Bar, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts';
const data = {
"organization": "desplega-ai",
"period": { "months": 6, "since": "2025-07-19" },
"generatedAt": "2026-01-19T18:52:33.908Z",
"repositories": [
{
"name": "desplega.ai",
@tarasyarema
tarasyarema / latency.txt
Created February 13, 2026 16:28 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@tarasyarema
tarasyarema / VSDD.md
Created March 1, 2026 22:45 — forked from dollspace-gay/VSDD.md
Verified Spec-Driven Development

Verified Spec-Driven Development (VSDD)

The Fusion: VDD × TDD × SDD for AI-Native Engineering

Overview

Verified Spec-Driven Development (VSDD) is a unified software engineering methodology that fuses three proven paradigms into a single AI-orchestrated pipeline:

  • Spec-Driven Development (SDD): Define the contract before writing a single line of implementation. Specs are the source of truth.
  • Test-Driven Development (TDD): Tests are written before code. Red → Green → Refactor. No code exists without a failing test that demanded it.
@tarasyarema
tarasyarema / gist:639a77162570c9ac0598bab37c4efd19
Created March 10, 2026 11:54 — forked from deezeddd/gist:106b688e28faea4b428816ba4ca61338
claude-switch-multi [Used to switch between multiple accounts]
#!/bin/bash
# Claude Code Multi-Account Switcher
# Usage: ./claude-switch-multi.sh [account1|account2|account3|save-current|list|status]
CLAUDE_DIR="$HOME/.claude"
@tarasyarema
tarasyarema / statusline.ts
Last active June 26, 2026 14:38
~/.claude/statusline.ts
#!/usr/bin/env bun
// Canonical source: https://gist.github.com/tarasyarema/65949b462de1c06077411e4f59d9cf8b
// Local changes should be synced to that gist. Byte-exact sync:
// jq -n --rawfile content ~/.claude/statusline.ts \
// '{files:{"statusline.ts":{content:$content}}}' \
// | gh api -X PATCH /gists/65949b462de1c06077411e4f59d9cf8b --input -
import { execSync } from 'child_process';
import {
closeSync,
@tarasyarema
tarasyarema / tmux.conf
Created April 15, 2026 10:50
~/.tmux.conf
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# pi coding agent
set -g extended-keys on
set -g extended-keys-format csi-u
# Misc configurations
# Use a stable terminal type rather than inheriting $TERM at server-start time