Skip to content

Instantly share code, notes, and snippets.

@jj1bdx
jj1bdx / audit.ex
Created May 12, 2026 13:52 — forked from PJUllrich/audit.ex
The Prompts I use for finding Vulnerabilities in Elixir/Erlang projects
defmodule MyApp.Prompts.Audit do
@moduledoc """
Prompts for the audit pipeline. Two entry points:
* `audit_file/4` — embeds a single source file in the prompt and
runs `MyApp.CodingAgent` against it. Style is `:simple` or
`:deep`; the executor picks based on `audit.strategy`.
* `audit_directory/2` — whole-package audit. Spawns the agent with
`:cwd` set to the source dir so it can use Read/Grep/Bash.
"""
@jj1bdx
jj1bdx / nnr-cassette-list.txt
Created September 15, 2025 11:06
Neuro Net Recordings Cassette Tape Track listing
Source: <https://www.discogs.com/label/139309-Neuro-Net-Recordings>
A correct and comprehensive track listing for the complete Active Potential compilation series from Neuro Net Recordings:
Active Potential #0
Released: December 1994
80min Chrome Tape
A1. Sector-One: Control (5:52)
@jj1bdx
jj1bdx / usb_hid_keys.h
Created July 8, 2025 04:48 — forked from MightyPork/usb_hid_keys.h
USB HID Keyboard scan codes
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/
@jj1bdx
jj1bdx / neo6502.md
Last active March 8, 2025 07:42
Neo6502 installation tips and caveats

Using Neo6502.md

Note well: no guarantee for the following hardware contents.

Hardware caveats

You need a working USB keyboard and a USB memory together, presumably with a USB hub.

HHKB Pro 2 + USB memory

@jj1bdx
jj1bdx / delete-aquaskk.md
Created March 3, 2025 05:09
Removing AquaSKK 4.x from macOS

Remove the AquaSKK 4.x from macOS

  • (As a superuser) Delete the directory and all files under the directory /Library/Input Methods/AquaSKK.app/
  • Delete the directory and all files under the directory ~/Library/Application Support/AquaSKK/
  • Restart the system
@jj1bdx
jj1bdx / getnavsat.py
Last active February 28, 2025 15:25
Get QZSS status from u-blox MAX-M10s via UBX protocol using pyubx2
#!/usr/bin/env python3
import signal
import socket
import sys
from pyubx2 import UBXReader, UBX_PROTOCOL
from pyubx2.ubxhelpers import itow2utc
import curses
def signal_handler(signal, frame):
@jj1bdx
jj1bdx / GR-M10-RP.md
Last active February 14, 2025 03:39
Configuration example of Prioris GR-M10-RP (u-blox MAX-M10S) ver 2.0 for Raspberry Pi 3B and 4 Bookworm

How to configure GR-M10-RP connected to Raspberry Pi 3B/4

Physical issues

  • You need to cut some parts of the plastic case to hold the protruding SMA connector from GR-M10-RP
  • To keep the BBR info of u-blox MAX-M10S in GR-M10-RP, a CR1220 lithium battery must be installed

Default UART speed

  • The default UART speed is 38400bps
@jj1bdx
jj1bdx / ghostty-config
Last active January 16, 2025 03:31
Ghostty config including jj1bdx-night-owl theme
# Put this file at ~/.config/ghostty/config
theme = jj1bdx-night-owl
font-size = 15
font-family = CommitMono
font-family = Noto Sans Mono CJK JP
# disable ligature
# (comment out the features to enable ligature)
font-feature = -calt
@jj1bdx
jj1bdx / sunrise-pm95tp.py
Last active December 16, 2024 12:31
Sunrise/Sunset time calculation code for Grid Locator PM95TP
#!/usr/bin/env python3
from skyfield import api, almanac
load = api.Loader('~/.skyfield-data')
ts = load.timescale()
planets = load('de421.bsp')
pm95tp = api.Topos(latitude = '35.645 N',
longitude = '139.623 E',
elevation_m = 45.0)
@jj1bdx
jj1bdx / decoded.txt
Last active July 21, 2024 06:42
FST4W test script using WSJT-X latest version (after 2.3.0)
0000 0 80 0.0 1500. 0 JJ1BDX PM95 37 FST4