Skip to content

Instantly share code, notes, and snippets.

View BinToss's full-sized avatar
✍️
Making progress...

Noah Sherwin BinToss

✍️
Making progress...
View GitHub Profile

Okay. So effective tick rates in Halo are weird. But completely explainable.

At a tick rate of 30 tps (ticks per second) which is what OG Xbox ran at because it was 30fps (frames per second).

input_firerate is in seconds

minimum_time_passed_between_shots = 1 / input_firerate

We calculate how many ticks should pass for the next shot.

@reasonableperson
reasonableperson / whisper-stream.sh
Last active May 8, 2025 01:09
generate running transcript for web streams
#!/bin/bash
# whisper-stream.sh
#
# Take a url supported by yt-dlp, dump 30-second segments to the current
# directory named by unix timestamp, and transcribe each segment using Whisper.
#
# example: TZ=Australia/Canberra ./whisper-stream.sh "https://..."
#
# The time displayed is the time when ffmpeg first opens the segment for