Skip to content

Instantly share code, notes, and snippets.

@hackerb9
hackerb9 / svgfontembed.svg
Last active June 20, 2024 22:45
Example of how to embed fonts into an SVG for browsers. (Inkscape still requires the fonts to be installed as of 2024).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hackerb9
hackerb9 / all-glyphs-cropped-to-8x12.png
Last active May 9, 2024 05:22
PNG images of font generated by Standard Microsystems Corp. chip CRT-8002-005
all-glyphs-cropped-to-8x12.png
@hackerb9
hackerb9 / foo.png
Last active March 6, 2024 06:53
Example output from rembg
foo.png

RS-232 speed vs tokenization speed of TRS-80 Model 100

File is 16,197 bytes, ASCII BASIC.

Command Bits per second Time Effective bps
LOAD "COM:98N1ENN" 19200 58s 2793
LOAD "COM:88N1ENN" 9600 59s 2745
LOAD "COM:68N1ENN" 2400 78s 2076
LOAD "COM:48N1ENN" 600 270s 600
@hackerb9
hackerb9 / hexit.bas
Last active October 28, 2022 04:43
Tandy 200 Hexdump
5 DIM H$(15): FOR T=0 TO 9:H$(T)=CHR$(48+T): NEXT T: FOR T=ASC("A") TO ASC("F"): H$(T-55)=CHR$(T): NEXT
6 DIM R$(7): FOR T=0 TO 7: R$(T)=" ": NEXT
10 DEFINT A-F, P: D=0: P=VARPTR(D)
15 INPUT "Start"; ST%
16 INPUT "End"; EN%
18 TS$=TIME$
20 FOR D=ST% TO EN%
30 IF (D MOD 8) = 0 THEN PRINT" ";: FOR T=0 TO 7: PRINTR$(T);: NEXT: PRINT: S=0: GOSUB 400
40 GOSUB 200
90 NEXT
@hackerb9
hackerb9 / isu2f.c
Last active August 29, 2022 06:43
Detect U2F (FIDO2) USB security keys by reading the hidraw report descriptor
/*
* Was originally u2f_hidraw_id.c,
* Copyright (c) 2014-2015 Andrew Lutomirski
*
* Mangled into isu2f.c by hackerb9 in 2022 as a demonstration for firejail.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
If I were a carpenter
WhAt have they done to the rain?
Kumbaya
Will the circle be unbroken?
Lonrsomr road
The cherry tree carol
Black is the color of my true love's hair
A hard rain?
@hackerb9
hackerb9 / wordleminusscowl80,95.txt
Created August 2, 2022 04:18
comm -13 <(egrep '^[A-Za-z]{5}$' $(ls /usr/share/dict/scowl/* | egrep -v 'upper|abbrev|proper|contract') | egrep 'english-words.(80|95)' | cut -d: -f2 | sort -u) <(curl -s https://raw.githubusercontent.com/tabatkins/wordle-list/main/words | sort -u)
aalii
aarti
abaca
abaci
aback
abaft
abamp
abase
abash
abate
@hackerb9
hackerb9 / scowl70percent.txt
Created August 2, 2022 03:16
egrep '^[A-Za-z]{5}$' $(ls /usr/share/dict/scowl/ | egrep -v 'upper|abbrev|proper|contract') | egrep -v 'english-words.(80|95)' | cut -d: -f2 | sort -u
aalii
abaca
abaci
aback
abaft
abase
abash
abate
abbey
abbot
@hackerb9
hackerb9 / Arthritis fishing.md
Last active May 21, 2022 19:53
Tips on making fishing easier for people with arthritis

From fishing forum:

Hirdy Well-known member Jan 26, 2017 #12 G'day Denny,

Although I don't personally have arthritis, I can empathise fully with you. My wife has had it in her hands since she was a teenager.