Skip to content

Instantly share code, notes, and snippets.

View GMNGeoffrey's full-sized avatar

Geoffrey Martin-Noble GMNGeoffrey

View GitHub Profile
#!/usr/bin/env python3
"""
Claude Code Session Manager - A TUI tool to browse, manage, and resume Claude Code sessions.
"""
import curses
import json
import os
from datetime import datetime
from pathlib import Path
aiohappyeyeballs==2.6.1
aiohttp==3.12.15
aiosignal==1.4.0
alembic==1.16.5
annotated-types==0.7.0
attrs==25.3.0
av==15.1.0
certifi==2025.8.3
cffi==1.17.1
charset-normalizer==3.4.3
aiohappyeyeballs==2.6.1
aiohttp==3.12.15
aiosignal==1.4.0
alembic==1.16.5
annotated-types==0.7.0
attrs==25.3.0
av==15.1.0
certifi==2025.8.3
cffi==1.17.1
charset-normalizer==3.4.3
#!/bin/bash
set -euo pipefail
# Delete local branches whose head commit is the same as that of a PR that has
# been merged.
DRY_RUN=0
DEBUG=0
#!/bin/bash
# Copyright 2021 Google LLC.
# SPDX-License-Identifier: Apache-2.0
# Protect yourself from accidentally pushing upstream. Leave the
# upstream push URL as a fake DISABLE. Then temporarily enable pushes
# when you do need them with this custom git subcommand. Run:
# `git sudo [command]` to run the `command` but with pushing to
# upstream enabled, e.g. `git sudo push upstream main`
@GMNGeoffrey
GMNGeoffrey / .gitconfig
Last active February 9, 2022 18:24
git commands
# Copyright 2020 Google LLC.
# SPDX-License-Identifier: Apache-2.0
[submodule]
recurse = false
fetchJobs = 8
[push]
#!/bin/bash
# Copyright 2022 Google LLC.
# SPDX-License-Identifier: Apache-2.0
set -e
set -o pipefail
if [[ -n "$(git status --porcelain --ignore-submodules)" ]]; then
echo "Working directory not clean"
@GMNGeoffrey
GMNGeoffrey / git-sudo.sh
Last active August 18, 2021 17:20
git-sudo
#!/bin/bash
# Copyright 2021 Google LLC.
# SPDX-License-Identifier: Apache-2.0
# Protect yourself from accidentally pushing upstream. Leave the
# upstream push URL as a fake DISABLE. Then temporarily enable pushes
# when you do need them with this custom git subcommand. Run:
# `git sudo [command]` to run the `command` but with pushing to
# upstream enabled, e.g. `git sudo push upstream main`
@GMNGeoffrey
GMNGeoffrey / ctest.py
Last active February 11, 2021 23:32
ctest with directory specification
#!/usr/bin/python3
# Copyright 2021 Google LLC.
# SPDX-License-Identifier: Apache-2.0
#!/usr/bin/python3
import argparse
import subprocess
import sys
@GMNGeoffrey
GMNGeoffrey / README.md
Last active November 19, 2024 19:18
Interactive Builds: git-watch, cool-bazel, ibazel

Some little scripts I've found useful for development. git-watch retriggers a command when your git repo changes, so can give interactive rebuilds like ibazel except I found that https://github.com/bazelbuild/bazel-watcher didn't work for me at all. This is also completely agnostic to the command, so can be used with CMake as well, for instance.