Skip to content

Instantly share code, notes, and snippets.

View thombles's full-sized avatar

Thomas Karpiniec thombles

View GitHub Profile
@thombles
thombles / config.yml
Created September 26, 2026 03:31
Local inference - llama command line and OMP config - 26 Sep 2026
modelRoles:
default: qwen/unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_M:xhigh
modelTags:
qwen:
name: Qwen 3.8 27B
cycleOrder:
- default
symbolPreset: unicode
theme:
dark: titanium
@thombles
thombles / SKILL.md
Created September 24, 2026 10:07
Claude PR review skill template
name claude-pr-review
description Review a GitHub pull request supplied as a URL and return a product-focused analysis.

The user has been asked to review a PR, probably generated by claude code, whose URL is in the invoking message. The PR description is probably low quality.

Please analyse the diff, the PR description, and existing review comments on the PR. Help the user understand:

  • What is the problem from a user-facing or product perspective?
@thombles
thombles / prompt.md
Created August 5, 2026 05:02
Prompt to create a Polish drills app

Please turn this into a macOS app to help me learn Polish. Lay it out nicely but stick to standard Mac UI elements. The first window should be a menu of available exercises. Today there should be just one exercise, cardinal numbers. There should be a field to choose the number of sentences I want to drill (default 20) and a button to start. This then loads a second window where it has several elements

  • a random prompt e.g. "There are 501 apples"
  • a hint for the noun in base form e.g. "jabłko"
  • a focused textfield where I am expected to type the answer in written out form case-insensitive and press enter, e.g. "są pięćset jeden jabłek" (or whatever the correct answer is)
  • progress indicator and cancel button

When I press enter it should either briefly flash correct then move to the next question, or flash incorrect, clear the textfield, and show the correct answer for 2 seconds which I have to retype. After completing all questions it should show me a scoring screen where it shows me how long I spent in

@thombles
thombles / fix-jetson-ota.sh
Created July 31, 2026 04:52
Reliably upgrade a Jetson on WendyOS 0.16.1/0.17.0 up to 0.18.1
#!/usr/bin/env bash
#
# fix-jetson-ota.sh — move a Jetson (Thor / AGX Orin) from WendyOS
# 0.16.1 or 0.17.0 onto 0.18.1, preserving enrolment.
#
# Two routes, chosen automatically:
#
# SWITCH — the inactive slot already holds >= 0.18.1 (any device that has
# already tried and failed an OTA). Re-point with plain
# `nvbootctrl set-active-boot-slot` and reboot.
@thombles
thombles / main.rs
Created September 1, 2017 09:06
Sample Rust ARP Server
// Thomas Karpiniec, 1 Sep 2017
// Companion code to https://karp.id.au/a/2017/09/01/layer-2-raw-sockets-on-rustlinux/
extern crate libc;
use std::io;
use std::ptr;
use std::mem;
use std::collections::HashMap;
use std::net::Ipv4Addr;