Skip to content

Instantly share code, notes, and snippets.

View unger1984's full-sized avatar
🌍
 I work everywhere 

Andrey Unger unger1984

🌍
 I work everywhere 
View GitHub Profile
@lee-fuhr
lee-fuhr / statusline-README.md
Last active May 3, 2026 07:16
Claude Code statusline (Ghostty/tmux) — project-colored, quota display, session topics

Claude Code statusline

When you're running multiple Claude Code sessions — and you will be — the default experience gives you nothing. Every chat looks the same. You don't know what each one is doing. You don't know how much context is left before degradation kicks in. You don't know if you're about to hit your quota ceiling.

This statusline fixes that. One glance tells you what you're working on, where you stand, and whether you should wrap up. Each session is visually distinct. Nothing to configure, nothing to maintain.

image image
@willurd
willurd / web-servers.md
Last active May 15, 2026 17:32
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@realmyst
realmyst / gist:1262561
Created October 4, 2011 19:34
Склонение числительных в javascript
function declOfNum(number, titles) {
cases = [2, 0, 1, 1, 1, 2];
return titles[ (number%100>4 && number%100<20)? 2 : cases[(number%10<5)?number%10:5] ];
}
use:
declOfNum(count, ['найдена', 'найдено', 'найдены']);