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 September 18, 2025 18:20
aarch64 big.LITTLE cpu-pinning

big.LITTLE cpu-pinning

ROCKPro64

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

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

@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.
@mbohun
mbohun / NOTES.md
Last active June 26, 2025 14:41
fungi taxonomy gbif uniprot REST JSON
@mbohun
mbohun / NOTES.md
Last active December 29, 2024 23:19
xmllint XPath

Creating the "main" photo gallery screen

  • From each gallery (subdir) index.html "main" thumbnail
    • encoded at (XPath):
      /html/head/meta[@property="og:image"]/@content
      
  • By extracting each gallery thumbnail with xmllint --xpath as shown here:
mbohun@mamlas:~/pCloudDrive/Public Folder/fungi> find . -name "index.html"
    | xargs xmllint --xpath 'string(/html/head/meta[@property="og:image"]/@content)'
@mbohun
mbohun / NOTES.md
Created December 7, 2024 15:38
AXAGON USB-C_to_eth

AXAGON USB-C_to_eth

[mbohun@danctnix ~]$ sudo dmesg -T
...

[Sat Dec  7 16:19:49 2024] usb 2-1: new SuperSpeed USB device number 8 using xhci-hcd
[Sat Dec  7 16:19:49 2024] usb 2-1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
[Sat Dec  7 16:19:49 2024] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[Sat Dec  7 16:19:49 2024] usb 2-1: Product: USB 10/100/1000 LAN
[Sat Dec 7 16:19:49 2024] usb 2-1: Manufacturer: Realtek
@mbohun
mbohun / NOTES.md
Last active December 1, 2024 06:08
GIS Leaflet JavaScript GeoJSON
@mbohun
mbohun / NOTES.md
Last active December 13, 2024 09:09
Xiaomi Redmi Note 13 Pro cam_app GPS TEST

Redmi Note 13 Pro cam_app GPS TEST

  • TODO
for jpg_photo in `ls *.jpg`; do
    raw_lat=$(identify -format '%[exif:GPSLatitude]' ${jpg_photo})
    raw_lon=$(identify -format '%[exif:GPSLongitude]' ${jpg_photo})
    
    lat=$(echo "$raw_lat" | while IFS="," read -r deg min sec; do echo "scale=6;$deg + $min /60 + $sec / 3600"| bc; done)
    lon=$(echo "$raw_lon" | while IFS="," read -r deg min sec; do echo "scale=6;$deg + $min /60 + $sec / 3600"| bc; done)