Skip to content

Instantly share code, notes, and snippets.

@j0ju
j0ju / README.md
Created May 15, 2026 21:40
Turing Pi2: Orin NX (node1) Flashing via RK1 (node4)
@j0ju
j0ju / iperf.yaml
Last active January 6, 2026 14:34
Very experimental and hacky IPerf2/3 deployment for k8s with experimental priviledged init containers to change network config if needed
---
apiVersion: v1
kind: Service
metadata:
name: iperf
spec:
selector:
app: iperf
ports:
- name: iperf2-tcp
@j0ju
j0ju / fast_firefox.md
Created March 5, 2025 17:09 — forked from RubenKelevra/fast_firefox.md
Make Firefox fast again
@j0ju
j0ju / RK1-boot-to-eMMC.sh
Last active February 17, 2025 00:20
Script to force boot a RK1 equipped with Uboot/Ubuntu 24.04 to eMMC
#!/bin/sh
set -e
set -x
# this needs, coreutils-stty, pppd-chat and minicom installed
# minicom needs proper config files in either /etc/{1..4}.minirc
# pointing to the correct device
case "${1:-}" in
[1234] ) NODE="$1" ;;
@j0ju
j0ju / n1mm_linux.md
Created October 20, 2024 13:22 — forked from ericek111/n1mm_linux.md
Contesting with N1MM on Linux: a tutorial for the adventurous

Contesting with N1MM on Linux

N1MM+ has been the go-to contest logger for many hams and, thanks to its networking features, also clubs. Sadly, it's only for Windows, it's closed-source and the bugs (whether in N1MM or Wine) don't make it any more fun.

Setting up Wine

  1. Install any decently recent flavour of Wine. Usually the one provided by your distro's package manager is fine.
  2. Install winetricks.
  3. Set the required environment variables. To work inside this wineprefix (which is, in short, a self-contained "fake" "Windows" "installation"), you need to specify its path inside every newly opened terminal window.
@j0ju
j0ju / rootfs-to.sh
Last active February 17, 2025 00:16
A script to install RK1 Ubuntu 24.04 Server Image booted from MMC to root on ZFS(or BTRFS, F2FS) on NVMe( or SATA)
#!/bin/sh
# /lib/rootfs-to.sh
set -eu
set -x
ROOT_DIR=/mnt
SRC_DIR=/media
#FS=btrfs
FS=zfs
@j0ju
j0ju / SVXLink Setup from Scratch on a Pi4
Last active August 27, 2024 15:07
SVXLink Setup on Pi4 with NAT64/DNS64 if possible
@j0ju
j0ju / nix-alpine.org
Created August 19, 2024 14:29 — forked from danmack/nix-alpine.org
install NIX package manager on Alpine Linux

NIX Package Manager Install on Alpine Linux

System Information

  • alpine 3.17.1, 3.18, 3.19 and edge x86-64
  • multiple linux kernels worked 6.1.8-lts w/zfs and 6.6.8-lts
  • edge, testing apk repos enabled

Preparation

#!/usr/bin/python
"""
Produces a Linux Netfilter u32 rule to match DNS requests for a given
domain name and/or a given query type.
Typical usage:
% python generate-netfilter-u32-rule.py --qname ripe.net --qtype ANY
Can be embedded in iptables' invocations for instance:
rule=$(python generate-rule.py args...)
#!/usr/bin/python
"""
Produces a Linux Netfilter u32 rule to match DNS requests for a given
domain name and/or a given query type.
Typical usage:
% python generate-netfilter-u32-rule.py --qname ripe.net --qtype ANY
Can be embedded in iptables' invocations for instance:
rule=$(python generate-rule.py args...)