Skip to content

Instantly share code, notes, and snippets.

@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...)

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@j0ju
j0ju / gist:45386d6146c0bc6feee69df26803dd2a
Created February 24, 2023 15:31 — forked from evilpacket/gist:3647908
Pure lua MD5 Implementation
--[[---------------
LuaBit v0.4
-------------------
a bitwise operation lib for lua.
http://luaforge.net/projects/bit/
How to use:
-------------------
bit.bnot(n) -- bitwise not (~n)