Skip to content

Instantly share code, notes, and snippets.

View sverrejoh's full-sized avatar

Sverre Johansen sverrejoh

View GitHub Profile
(defun svj-npm-get-latest-version (dependency-name)
(let* ((url (format "https://registry.npmjs.org/%s" dependency-name))
(buffer (url-retrieve-synchronously url t)))
(with-current-buffer buffer
(goto-char url-http-end-of-headers)
(unwind-protect
(cdr (assq 'latest (assq 'dist-tags (json-read))))
(kill-buffer buffer)))))
(defun svj-npm-query-replace-dependency ()
@sverrejoh
sverrejoh / README.md
Last active May 20, 2026 20:31
Hunting tmux sessions with fzf — Tokyo Night, top status bar, fzf session-tree + sessionizer popups

Hunting tmux sessions with fzf

fzf session-tree picker

I have 22 tmux sessions open right now. That's not unusual — each project, each side-quest, each "let me just poke at this for a minute" gets its own session and never quite leaves. The only way that scales is if jumping between them is faster than thinking about it.

@sverrejoh
sverrejoh / gist-readme.md
Last active March 4, 2026 13:39
Custom Claude Code status line with truecolor gradient context bar, version alerts, and model info

Claude Code Custom Status Line

A rich, colorful status line for Claude Code that shows context usage, model info, version update alerts, and more — right in your terminal.

Status line preview

What it shows

Section Example Description