Skip to content

Instantly share code, notes, and snippets.

VisionOSC format

Based on TrackOSC by @JGL. Compatible with VisionOSC by @lingdong-. All messages are sent unbundled, one per enabled detector per processed frame, including when nothing is detected (header-only). Coordinates are as described above.

Coordinate system

Everything on the wire uses one convention — the same one VisionOSC uses:

(0,0) ──────────► x width

Hermes Agent Transfer Guide

To migrate Hermes configuration and learned state to another machine:

1. Copy the Config File

scp ~/.hermes/config.yaml user@new-host:~/.hermes/

2. Copy Profile Data

@echo off
rem set PORT=8080
rem :findport
rem netstat -ano | findstr ":%PORT% " | findstr "LISTENING" >nul 2>&1
rem if %errorlevel%==0 (
rem set /a PORT+=1
rem goto findport
rem )
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
sudo sed -i 's/raspbian.raspberrypi.org/legacy.raspbian.org/g' /etc/apt/sources.list
sudo sed -i 's/archive.raspberrypi.org/legacy.raspbian.org/g' /etc/apt/sources.list.d/raspi.list
sudo apt-get update
#!/bin/bash
# Default directory is current directory, or accept as first argument
DIR="${1:-.}"
echo "Scanning directory: $DIR"
echo "This may take a moment depending on the project size..."
# Find text files, excluding common binary, dependency, or large cache directories across various platforms.
CHAR_COUNT=$(find "$DIR" -type f \
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
@echo off
cd /D %~dp0
set PORT=8080
:findport
netstat -ano | findstr ":%PORT% " | findstr "LISTENING" >nul 2>&1
if %errorlevel%==0 (
set /a PORT+=1
@n1ckfg
n1ckfg / float_to_int.py
Created November 26, 2025 17:53
Float to int converter methods
def float_to_int(float_value, num_places):
multiplier = 10 ** num_places
return int(round(float_value * multiplier))
def int_to_float(int_value, num_places):
divisor = 10 ** num_places
return int_value / divisor
@n1ckfg
n1ckfg / nouns.md
Created July 10, 2025 18:23 — forked from trag1c/nouns.md
A list of nouns in the English language (40,940 entries)

Based on the WordNet corpus, omitting results containing:

  • slashes (e.g. lo/ovral)
  • spaces (e.g. living_thing)
  • digits (e.g. 1900s)

Generated with the following Python script using NLTK:

from pathlib import Path

from nltk.corpus import wordnet