Skip to content

Instantly share code, notes, and snippets.

@hackerb9
hackerb9 / macallycaps.md
Created July 28, 2024 09:12
Macally Bluetooth CAPS LOCK stuck on

The problem

Macally brand Bluetooth keyboard, connected to an Android phone, has caps lock permanently on. Hitting the CAPS key does nothing as it is treated as a CONTROL key. Using SHIFT inverts the letter case.

Turning keyboard off and on does not fix the problem.

@hackerb9
hackerb9 / spitify.md
Last active July 28, 2024 09:01
Getting Spotify website working on Fennec, Android (GrapheneOS)

The problem

Playback disabled

Spotify won’t work if you block protected content, have an incompatible browser, or are using an incognito or private browsing mode.

Adjust your browser settings or download

@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?