Skip to content

Instantly share code, notes, and snippets.

@jstorrs
jstorrs / backup.bat
Last active December 29, 2025 23:16
@echo off
setlocal EnableExtensions
REM ====== CONFIG ======
set "SRC=C:\Path\To\SourceFolder"
set "DST=\\server\share\SourceFolderBackup"
set "LOG=%~dp0backup_%DATE:~-4%-%DATE:~4,2%-%DATE:~7,2%.log"
REM ====================
echo ================================================ >> "%LOG%"
@jstorrs
jstorrs / button_test.py
Created December 29, 2025 22:14
SensaVue Tester
#!/usr/bin/env python3
"""
Multi-monitor full-screen "color + centered text" display.
- Fills ALL attached displays (spans a single borderless window across them) with a solid color.
- Shows a large black "+" centered (across the whole combined desktop).
- Press 1/2/3/4 to change background to Blue/Yellow/Red/Green and replace "+" with the digit.
- Press any other key to exit. (Esc also exits.)
"""
@jstorrs
jstorrs / trace_sequences.py
Last active September 21, 2022 15:53
A decorator to trace pydicom.dataset.Dataset's walk()
from pydicom import DataElement, Dataset
def trace_sequences(walk_callback):
stacks = {}
contexts = []
def add_items(parent: Dataset, elem: DataElement) -> None:
for item in range(elem.VM):
contexts.append((parent, elem, item))

Keybase proof

I hereby claim:

  • I am jstorrs on github.
  • I am jstorrs (https://keybase.io/jstorrs) on keybase.
  • I have a public key whose fingerprint is D9C7 9B5A DC56 4905 4056 92B3 41DD 817A 5EBF 1200

To claim this, I am signing this object: