Skip to content

Instantly share code, notes, and snippets.

View ssgreg's full-sized avatar
:octocat:
At work

Grigory Zubankov ssgreg

:octocat:
At work
View GitHub Profile
int foo = 5;
if (foo > 3)
{
std::cout << "!";
}
class Action
{
public:
virtual ~Action() {}
virtual void Do() = 0;
};
class Nothing : public Action
{

Endpoint-Level Authentication for Client Libraries

Problem Statement

We need transparent authentication and automatic re-authentication (when a token expires) for HTTP client libraries that talk to cloud services. The solution must be:

  • Explicit — clear where auth is applied and where it is not
  • Safe — no accidental token leakage to unrelated services
  • Simple to retry — re-authentication on 401 without body rewind hacks
@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.