Skip to content

Instantly share code, notes, and snippets.

View EverettBerry's full-sized avatar
🚀
GTM Engineering

retttx EverettBerry

🚀
GTM Engineering
View GitHub Profile
@YoraiLevi
YoraiLevi / README.md
Created May 25, 2026 20:08
Session-scoped hooks in Claude Code: how /goal works and how to get the same effect via settings.local.json hot-reload

Session-scoped hooks in Claude Code

How /goal actually works under the hood, and how to get the same effect yourself with a one-line file edit — no plugin, no restart, no patched binary.

TL;DR

Claude Code has a private, in-memory sessionHooks registry that only the built-in /goal command and Skills can write to. You can't access it from user-land.

But the runtime re-reads your .claude/settings.local.json file on every single hook event, so dropping a hooks block into that file is effectively the same thing: the hook becomes active on the next tool call, and deleting it from the file removes it on the call after that. No restart needed. Both directions were verified empirically.

@rain-1
rain-1 / LLM.md
Last active September 20, 2026 22:21
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@simonw
simonw / recover_source_code.md
Last active September 9, 2026 17:52
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@shreddd
shreddd / redirect.py
Created September 30, 2015 21:14
Simple Redirect Server in python to redirect requests to a specified URL
#!/usr/bin/env python
"""
Simple HTTP URL redirector
Shreyas Cholia 10/01/2015
usage: redirect.py [-h] [--port PORT] [--ip IP] redirect_url
HTTP redirect server
positional arguments:
@davidmh
davidmh / CtrlP_acceleration
Last active July 12, 2023 16:33 — forked from av-ast/CtrlP_acceleration
Accelerate CtrlP by ignoring certain files and paths. Including node modules and grunt's .tmp
" Ignore some folders and files for CtrlP indexing
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|\.yardoc\|node_modules\|log\|tmp$',
\ 'file': '\.so$\|\.dat$|\.DS_Store$'
\ }
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active November 8, 2026 06:37
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname