Skip to content

Instantly share code, notes, and snippets.

@tovacinni
tovacinni / gtr.sh
Last active October 6, 2025 01:56
Git worktree helper for Claude Code
# gtr ─ Git worktree helper
#
# Examples
# --------
# gtr create feature0 # add ~/code/worktrees/feature0 (branch claude/feature0)
# gtr create feat1 feat2 # add two worktrees at once
# gtr rm feature0 # remove the worktree directory
# gtr cd feature0 # jump into the worktree directory
# gtr claude feature0 # run `claude` while inside that worktree
#
@tovacinni
tovacinni / stl_to_bin.py
Last active October 26, 2021 20:59
Filter out safe-to-load watertight STLs
# This simple script will filter out STLs which will not properly load
# with trimesh as a watertight mesh, and save them as space efficient ply files.
import os
import sys
import glob
import trimesh
if __name__ == '__main__':
path = sys.argv[1]