personal settings for claude code.
statusline.sh shows git branch and context utilization.
requires bc to be installed (apt install bc)
| # Qdrant vector database — docker compose group. | |
| # Persistent storage in ./storage (bind-mount; gitignored). | |
| DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) | |
| COMPOSE := docker compose -f $(DIR)docker-compose.yml | |
| .PHONY: help install enable disable uninstall status restart logs pull wipe | |
| help: ## Show available targets | |
| @grep -E '^[a-zA-Z_-]+:.*##' $(firstword $(MAKEFILE_LIST)) | awk 'BEGIN {FS = ":.*## "}; {printf " %-12s %s\n", $$1, $$2}' |
personal settings for claude code.
statusline.sh shows git branch and context utilization.
requires bc to be installed (apt install bc)
| #!/bin/bash | |
| uv run --isolated \ | |
| --with streamlit==1.42.0 \ | |
| --with opencv-python-headless==4.8.1.78 \ | |
| --with matplotlib==3.10.0 \ | |
| streamlit run \ | |
| --server.headless true \ | |
| --browser.gatherUsageStats false \ | |
| --browser.serverAddress 0.0.0.0 \ |
| #!/usr/bin/env python3 | |
| """ | |
| Streamlit app for segmenting insects using SAM (Segment Anything Model). | |
| uv run \ | |
| --with streamlit \ | |
| --with segment_anything \ | |
| --with opencv-python-headless \ | |
| --with torch \ | |
| --with matplotlib \ |
| """ | |
| Streamlit web interface for perspective warp correction. | |
| Uses core functionality from correct.py. | |
| """ | |
| import pathlib | |
| import tempfile | |
| from io import BytesIO | |
| import cv2 |
| # Use a base Debian image | |
| FROM debian:latest | |
| # Define an argument for the repository URL | |
| ARG REPO_URL=http://localhost:9221 | |
| # Replace default Debian repository with a local mirror | |
| RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak \ | |
| && sed -i "s|http://deb.debian.org/debian|${REPO_URL}/debian|g" /etc/apt/sources.list \ | |
| && sed -i "s|http://security.debian.org/debian-security|${REPO_URL}/debian-security|g" /etc/apt/sources.list |
| """ | |
| Usage: python remove_output.py notebook.ipynb | |
| Modified from remove_output by Minrk | |
| Modified from remove_output by mathematicalmichael | |
| """ | |
| import sys | |
| import io | |
| import os | |
| from nbformat import read, write, NO_CONVERT |
| shopt -s expand_aliases | |
| # load in your custom fzf extensions | |
| if [ -f ~/.bash_fzf ]; then | |
| . ~/.bash_fzf | |
| fi | |
| alias srv='python -m http.server' | |
| alias erc='vim ~/.bash_aliases' |
| <center> | |
| <iframe id="videoframe" width="560" height="315" src="" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | |
| <script type="text/javascript"> | |
| var segment_str = window.location.pathname; | |
| var segment_array = segment_str.split( '/' ); | |
| var last_segment = segment_array.pop(); | |
| document.getElementById('videoframe').src = 'https://www.youtube.com/embed/' + last_segment; | |
| </script> | |
| </center> |