Skip to content

Instantly share code, notes, and snippets.

@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
Last active April 25, 2026 02:55
Ubuntu TeXLive environment

Installing TeXLive on Ubuntu

For Ubuntu 26.04 LTS and TeXLive 2026

Don't

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

Remove installed packages by apt first

@jj1bdx
jj1bdx / atecc608a-i2c-notes.md
Created January 10, 2024 06:16 — forked from rrottmann/atecc608a-i2c-notes.md
ATECC608A I2C Notes

ATECC608A I2C Notes

Here be dragons

WARNING: AS THE DEVICE CAN BE CONFIGURED ONLY ONCE, PLEASE BE WARNED THAT YOU MIGHT EASILY BRICK THE CHIP! USE AT YOUR OWN RISK!

Circuit

Please make sure to use proper circuit for ATECC608A with pullups and decoupling capacitors when hooked to a MCU. A Raspberry Pi might also work without external components just using internal pullups.

@jj1bdx
jj1bdx / atan2test-summary.md
Last active December 17, 2023 04:40
VOLK v3.1.0 volk_32fc_s32f_atan2_32f() anomaly on input element 0+0j

VOLK v3.1.0 volk_32fc_s32f_atan2_32f() anomaly on input element 0+0j

VOLK v3.1.0 volk_32fc_s32f_atan2_32f() returns -NaN when input has a 0+0j element for the avx2 and avx2_fma kernels.

Note: j denotes an imaginary number, where j^2 = -1.

Summary

VOLK v3.1.0 volk_32fc_s32f_atan2_32f() returns -nan for the following kernels:

@jj1bdx
jj1bdx / disable all macos animations
Created October 23, 2023 05:30 — forked from j8/disable all macos animations
disable all macos animations for high performance
defaults write -g NSScrollViewRubberbanding -int 0
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
defaults write -g NSScrollAnimationEnabled -bool false
defaults write -g NSWindowResizeTime -float 0.001
defaults write -g QLPanelAnimationDuration -float 0
defaults write -g NSScrollViewRubberbanding -bool false
defaults write -g NSDocumentRevisionsWindowTransformAnimation -bool false
defaults write -g NSToolbarFullScreenAnimationDuration -float 0
defaults write -g NSBrowserColumnAnimationSpeedMultiplier -float 0
defaults write com.apple.dock autohide-time-modifier -float 0