Skip to content

Instantly share code, notes, and snippets.

View 7rulnik's full-sized avatar

Valentin Semirulnik 7rulnik

View GitHub Profile
@ssgreg
ssgreg / claude-code-agterm-tab-resume.md
Created July 1, 2026 10:41
Per-tab Claude Code session resume in agterm (zsh): each tab resumes its own conversation after a terminal restart

Per-tab Claude Code session resume in agterm

Keep several Claude Code sessions open at once? With this, after the terminal restarts each tab resumes its own conversation instead of a shared "most recent" one.

What it's good at

  • Solves a concrete pain: multiple parallel Claude Code sessions survive a restart, each reopening exactly its own conversation.
@johnsoncodehk
johnsoncodehk / tsslint_3.1_eslint_rules_at_16x.md
Last active May 1, 2026 03:24
TSSLint 3.1: running ESLint rules at 16× speed

Running ESLint rules at 16× speed in TSSLint

On Dify web/ (5860 .ts / .tsx files), running one type-aware rule:

Wall (min of 3) Peak RSS
ESLint Linter 25 s 7.0 GB
TSSLint 3.1 1.5 s 3.75 GB

Native linters (Rust's Oxlint and the like) hitting 10× is normal — that's the cross-runtime gap. JS-vs-JS usually lands at 1.5-3×. This 16× is the same V8, the same ESLint rule source, the same ESTree shape — the gap is all architecture. 3.1 is a full rewrite of @tsslint/compat-eslint (the compatibility layer that lets stock ESLint rules run inside TSSLint). Bench: tsslint-dify-bench.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@privatenumber
privatenumber / typescript-v5-to-v6.md
Created February 24, 2026 13:21
TypeScript 5.x to 6.0 Migration Guide

TypeScript 5.x to 6.0 Migration Guide

TypeScript 6.0 is a transition release bridging 5.9 and the forthcoming 7.0 (a native Go port). Most changes are new defaults and deprecations preparing for 7.0. Here is what you need to do:

Most projects need these tsconfig changes:

{
    "compilerOptions": {
        "types": ["node"],           // @types are no longer auto-discovered (see §1.6)
@excellproj
excellproj / Fix_DualSense_HollowKnight_macOS.md
Last active October 31, 2025 00:34
DualSense Controller Fix for Hollow Knight on macOS

Версія MacOS на момент написання: Sequoia 15.6.1
Версія гри Hollow Knight: 1.5.78

Крок 1
Завантажити патчену бібліотеку Assembly-CSharp.dll, щоб гра розпізнавала контролер підключений через Bluetooth

Крок 2
Перемістити з заміною Assembly-CSharp.dll у теку гри за шляхом ~/Library/Application Support/Steam/steamapps/common/Hollow Knight/hollow_knight.app/Contents/Resources/Data/Managed
для цього в Finder введіть комбінацію Shift+Command+G та вставте шлях до теки та натисніть Enter

@fabiospampinato
fabiospampinato / inspect.zsh
Last active April 20, 2024 23:37
Node.js inspect function and plugin for zsh
# INSPECT
function inspect () {
eval NODE_OPTIONS="--inspect-brk" $@
}
# INSPECT PLUGIN
# Toggles the "inspect " prefix upon double ESC key
function plugin-inspect () {
@umputun
umputun / safari-summary.sh
Last active June 13, 2025 21:09
Raycast script for Safari's page summary
#!/bin/sh
# @raycast.schemaVersion 1
# @raycast.title Summarize Safari page
# @raycast.mode fullOutput
#
# Optional parameters:
# @raycast.icon ✨
#
# @raycast.packageName Things

How to install game-porting-toolkit (aka proton for macOS)

You also might wanna just use Whisky which does this automatically

This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.

@mbierman
mbierman / randommac.sh
Last active February 9, 2026 04:36
NOTE: Looks like Apple killed tis in Sonoma for Ethernet but the following works for Wi-Fi.
#!/bin/bash
# v 2.0
# https://gist.github.com/mbierman/03b2a962ac04963ef5bbc8354d0ed5d1
# 2022 mbierman
sleep="${1:-6}"
regex="^([0-9A-F]{2}[:]){5}([0-9A-F]{2})$"
getmac () {
rnd=$(openssl rand -hex 6 | sed 's/\(..\)\(..\)\(..\)\(..\)\(..\)\(..\)/\1:\2:\3:\4:\5:\6/')
@dragomirtitian
dragomirtitian / findings.md
Last active November 27, 2023 22:39
`isolatedDeclarations` findings

A few findings from experimenting with isolated declarations:

New required type annotations

Exported variables

Exported variables will need an explicit type annotation (✅ implemented).

export const c1: 1 = 1; // ✔ ok, is explicit