Skip to content

Instantly share code, notes, and snippets.

View twisted-nematic57's full-sized avatar
๐Ÿ“
on the grind

twisted-nematic57

๐Ÿ“
on the grind
View GitHub Profile
@twisted-nematic57
twisted-nematic57 / llama-limit.bat
Created February 14, 2026 03:14
llama-server CPU usage limiter
@echo off
REM Restricts llama-server to a certain set of CPU cores.
REM Argument: integer representing the # of cores to limit to
echo Setting llama-server affinity to last %1 cores...
REM Hardcoded CPU affinity masks for my 12-core system because I'm too lazy to do this elegantly.
REM The "first" cores are P-cores and the "last" ones are E-cores; I want to keep P-cores free for
@twisted-nematic57
twisted-nematic57 / candle.py
Created October 31, 2025 19:02
hallowen candle made in 1hr
# CANDLE v0.1.0
# Contributors to this file:
# - twisted_nematic57
# This file is Public Domain
import machine
import rp2
import sys # I don't know why this is needed
import _thread
from time import * # why not `import time`? we'll never know
@twisted-nematic57
twisted-nematic57 / darkpdf.css
Created February 19, 2023 01:44
Paste this into your console to make PDFs dark mode! (this also inverts the color of images) Works best on Firefox
viewer.style = 'filter: grayscale(100%) invert(84%) contrast(178%) brightness(82%)'
@twisted-nematic57
twisted-nematic57 / git_create_orphan.sh
Created October 9, 2022 03:33 — forked from seanbuscay/git_create_orphan.sh
Create an orphan branch in a repo.
cd repository
git checkout --orphan orphan_name
git rm -rf .
rm '.gitignore'
echo "#Title of Readme" > README.md
git add README.md
git commit -a -m "Initial Commit"
git push origin orphan_name