Skip to content

Instantly share code, notes, and snippets.

View Brockhold's full-sized avatar
💭
Robo boogie

Benjamin Rockhold Brockhold

💭
Robo boogie
View GitHub Profile

Keybase proof

I hereby claim:

  • I am brockhold on github.
  • I am benrockhold (https://keybase.io/benrockhold) on keybase.
  • I have a public key ASAL46eWdmHS6vFinxr03Cm29WTVcfeQzONal8x0aP7a_Ao

To claim this, I am signing this object:

@Brockhold
Brockhold / FRC_tag16h5_generator.py
Created November 11, 2022 23:58
16H5 Apriltag Generator
#! /usr/bin/python3
# Generate and dump the complete set of 16H5 AprilTags in spec for use as FRC 2023 vision targets.
# Outputs 30 SVG images containing white 8-inch squares, inside of which are centered 6-inch 16H5 tags.
# Files are dropped in working directory, with filenames following the pattern of "tag16h5_#.svg" with # from 0 to 29
#
# With appreciation for the more featureful generator the numpy and svgwrite code derives from:
# https://iosoft.blog/2019/09/02/raspberry-pi-position-detection-fiducial-tags/
import math
#import sys
/*
Simple serial fan control to go along with a PWM-capable fan and host side software which prints (ascii) integers in the range
0-255 inclusive. Perhaps those integers can be given by a fan control curve on the host.
If no serial interface is connected within two seconds, we simply turn the fan on at maximum and keep waiting.
This firmware will accept numeric characters, which are interpreted as integers. Any other type of character marks the end of the value.
It responds with the interpreted value, constrained to the acceptable PWM range (0-255).
*/
int controlPin = 5; // Any PWM capable output pin
@Brockhold
Brockhold / gist:5fa86cb922e23ca36c79aa8a64c23275
Created January 10, 2024 19:48
Reduce excessive tailscaled logging
> systemctl edit tailscaled.service
[Service]
LogLevelMax=notice
@Brockhold
Brockhold / compose.yaml
Created February 22, 2024 00:49
docker/podman compose for Ollama using ROCM and webui
version: "3.7"
services:
ollama:
container_name: ollama
image: ollama/ollama:0.1.26-rocm
environment:
- GPU_MAX_HW_QUEUES=1
restart: unless-stopped
network_mode: host