Skip to content

Instantly share code, notes, and snippets.

View mbohun's full-sized avatar
🙃
How do you do?

Martin Bohun Hormann mbohun

🙃
How do you do?
  • Canberra, ACT, Australia
View GitHub Profile
@mbohun
mbohun / NOTES.md
Last active June 25, 2026 10:24
JingPadA1 unlock UBPorts

This is what i see in dmesg output after connecting JingPad A1 to my Orange Pi 5 Pro Linux PC:

[Thu Jun 25 11:39:44 2026] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[Thu Jun 25 11:39:44 2026] usb 1-1: New USB device found, idVendor=18d1, idProduct=4ee7, bcdDevice= 4.04
[Thu Jun 25 11:39:44 2026] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Thu Jun 25 11:39:44 2026] usb 1-1: Product: Unisoc Phone
[Thu Jun 25 11:39:44 2026] usb 1-1: Manufacturer: Unisoc
[Thu Jun 25 11:39:44 2026] usb 1-1: SerialNumber: A12140MKCA000287
[Thu Jun 25 11:39:45 2026] rndis_host 1-1:1.0 eth0: register 'rndis_host' at usb-xhci-hcd.8.auto-1, RNDIS device, 96:8d:83:07:4a:4e
@mbohun
mbohun / NOTES.md
Created June 20, 2026 23:42
Quectel LTE M.2

Quectel EM05-G (Global)

Quectel EM05 is an LTE category 4 module adopting standard M.2 (NGFF) form factor. The space-saving M.2 form factor allows EM05 to be easily integrated into smaller and thinner devices. With maximum data rates up to 150Mbps downlink and 50Mbps uplink, it is optimized specially for M2M and IoT applications.EM05 contains three variants: EM05-CE, EM05-E and EM05-CML, which can provide data connectivityon LTE-FDD, LTE-TDD, DC-HSDPA, HSPA+, HSDPA, HSUPA, WCDMA and CDMA networks.A rich set of Internet protocols, industry-standard interfaces and abundant functionalities (USB drivers for Windows 7/8/8.1/10, Linux and Android, DFOTA, etc.) extend the applicability of the module to a wide range of M2M applications such as industrial router, industrial PDA, rugged tablet PC, video surveillance and digital signage.

Key Benefits

  • LTE-A Cat.4 module with M.2 form factor, optimized for M2M and IoT applications
  • Quectel Wireless Solutions product -

REFERENCES:

@mbohun
mbohun / NOTES.md
Created June 6, 2026 10:25
AI models Ollama llama.cpp

AI models for local deployment

Company Model(s) Parameters Local Deployment Method License
DeepSeek DeepSeek-V3, DeepSeek-R1 Various Ollama, vLLM, llama.cpp Open weights
Mistral AI Ministral 3, Devstral Small 2 14B, 24B Ollama, vLLM Apache 2.0
Google (DeepMind) Gemma 4 12B 12B Ollama, vLLM, SGLang, MLX, llama.cpp, LiteRT-LM Apache 2.0
Meta Llama 3 (8B Instruct, 70B) 8B, 70B Ollama, llama.cpp Llama license
IBM Granite 4.0 (series) 350M to 3B+ Ollama, vLLM Apache 2.0
xAI Grok 2 270B llama.cpp (GGUF quantized) Grok Community License
@mbohun
mbohun / broken.c
Created May 13, 2026 15:15
libSDL3 DeepSeekAI generated crap
#include <SDL3/SDL.h>
#include <SDL3_ttf/SDL_ttf.h>
int main() {
SDL_Init(SDL_INIT_VIDEO);
TTF_Init(); // Initialize the font system
SDL_Window* window = SDL_CreateWindow("Text Demo", 800, 600, 0);
SDL_Renderer* renderer = SDL_CreateRenderer(window, NULL);
@mbohun
mbohun / error_log.md
Created February 9, 2026 11:16
OrangePi5pro armbian apt kernel

/var/lib/dkms/v4l2loopback/0.12.7/build/make.log

DKMS make.log for v4l2loopback-0.12.7 for kernel 6.1.115-vendor-rk35xx (aarch64)
Mon Feb  9 12:05:20 PM CET 2026
Building v4l2-loopback driver...
make -C /lib/modules/6.1.115-vendor-rk35xx/build M=/var/lib/dkms/v4l2loopback/0.12.7/build modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.115-vendor-rk35xx'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: aarch64-linux-gnu-gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
@mbohun
mbohun / NOTES.md
Last active January 28, 2026 08:27
termux; termux-api; termux-location

termux-location

install

  1. install termux app
  2. install termux-api app
  3. open termux terminal and install:
    pkg install termux-api
    

run it

@mbohun
mbohun / NOTES.md
Last active November 5, 2025 14:07
aarch64 big.LITTLE cpu-pinning

big.LITTLE cpu-pinning

ROCKPro64

  • ROCKpro64 by PINE64
    • Rockchip RK3399
  • big.LITTLE architecture:
    • Quad Cortex-A53 0xd03
    • Dual Cortex-A72 0xd08

NOTE: "CPU part" identifies the A53 and A72 CPUs respectively.

@mbohun
mbohun / NOTES.md
Last active September 3, 2025 23:13
geojson jq Siebenbuergen
@mbohun
mbohun / NOTES.md
Last active August 16, 2025 20:55
C++17
Feature C++17 (std) Boost 1.88
Threading ✅ (std::thread) ✅ (boost::thread)
Mutexes ✅ (std::mutex) ✅ (boost::mutex)
Futures/Promises ✅ (std::future) ✅ (boost::future)
Filesystem ✅ (std::filesystem) ✅ (boost::filesystem)
Time Utilities ✅ (std::chrono) ✅ (boost::chrono)
UDP Sockets ✅ (boost::asio)
TCP Sockets ✅ (boost::asio)
HTTP/HTTPS ✅ (boost::beast)
@mbohun
mbohun / NOTES.md
Last active March 5, 2025 22:06
MSI laptop `fwupdmgr get-upgrades`
mbohun@mamlas:~> Read from remote host 192.168.1.35: Connection timed out
Connection to 192.168.1.35 closed.
client_loop: send disconnect: Broken pipe
[mbohun@mbohunorangepi5pro ~]$ ssh 192.168.1.35
Last login: Thu Mar  6 08:05:01 AEDT 2025 from 192.168.1.20 on ssh

1 device has a firmware upgrade available.
Run `fwupdmgr get-upgrades` for more information.