Skip to content

Instantly share code, notes, and snippets.

View jj1bdx's full-sized avatar
🏠
Working from home

Kenji Rikitake jj1bdx

🏠
Working from home
View GitHub Profile
@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
@jj1bdx
jj1bdx / clublog-upload.sh
Last active February 10, 2025 19:45
LoTW/Club Log/eQSL.cc uploading scripts
#!/opt/homebrew/bin/bash
# NOTE WELL: this script includes CONFIDENTIAL API KEY!
API='Your API Key'
# API password
PASS='App password'
CALL='Your callsign'
EMAIL='Your account email'
FILE=$1
#
# You can add "-v -i" option to curl for debugging
@jj1bdx
jj1bdx / ubuntu-server-from-desktop.md
Created April 11, 2024 08:52
Ubuntu conversion from Desktop to Server

Ubuntu conversion from Desktop to Server

Source: https://www.technomancer.com/archives/789

# Do this as a root
# Install Ubuntu Server, after stopping unattended upgrades
systemctl disable unattended-upgrades
systemctl set-default multi-user.target
apt update && apt -y upgrade 
@jj1bdx
jj1bdx / ubuntu-texlive.md
Created March 17, 2024 06:27
Ubuntu TeXLive environment

Installing TeXLive on Ubuntu

For Ubuntu 22.04.4 LTS and TeXLive 2024

Don't

  • Do not use default given packages. They are too old and obsolete.

Remove installed packages by apt first