Skip to content

Instantly share code, notes, and snippets.

@marcelrv
marcelrv / tinybee.md
Last active June 2, 2023 07:59
Setting up TMC 2209 drivers, connecting via UART toMKS tinybee
@marcelrv
marcelrv / openwrt-wireguard.md
Last active July 24, 2023 13:37
Wireguard clients config
@marcelrv
marcelrv / PCBMilling.md
Last active February 7, 2023 18:37
PCB Milling
@marcelrv
marcelrv / mayhem-dev.md
Last active August 30, 2022 20:31
Mayhem AIS

Connect the hackrf to WSL to flash

usbipd wsl list


usbipd wsl attach --busid <busid>
usbipd wsl attach --busid 2-2
@marcelrv
marcelrv / _docker-migrate-aufs.md
Last active February 5, 2024 00:21
Docker migrate to overlay2 from aufs script

Docker migrate to overlay2 from aufs script

Crazy that this is pretty much forced change without proper transition script

note. Based on https://www.sylvaincoudeville.fr/2019/12/docker-migrer-le-stockage-aufs-vers-overlay2/ NOT WORKING!!!! IF FOLLOWING THE ABOVE.. SOMEHOW THE CONTAINERS DO NOT RE-APPEAR!

The only way I found that is somewhat automated is the the docker-compose way..

Which is still not 100% and require manual fixing of stupid errors of the docker-compose tool (mainly things that ere not interpreted right, like dates & userIds that need to manually surrounded by quotes etc)

@marcelrv
marcelrv / dept-upload.md
Last active May 20, 2021 21:58
Openseamap dept upload

get the list of vessel configs http://depth.openseamap.org:8080/org.osm.depth.upload/api2/vesselconfig

get list of tracks http://depth.openseamap.org:8080/org.osm.depth.upload/api2/track Response:

[{"id":125628,"fileName":"skserver-raw_2021-05-13T12-clean.txt","upload_state":6,"fileType":"application/x-nmea0183","compression":"application/zip","vesselconfigid":0,"containertrack":125625,"license":0,"uploadDate":0,"num_points":3140,"left":5.394117,"right":5.4788833,"top":53.181168,"bottom":53.170315},{"id":125625,"fileName":"skserver-raw_2021-05-13T12-clean.zip","upload_state":6,"compression":"application/zip","vesselconfigid":1377,"containertrack":0,"license":1,"uploadDate":1621376695330,"num_points":3140,"left":5.394117,"right":5.4788833,"top":53.181168,"bottom":53.170315},{"id":125622,"fileName":"nmeatest.txt","upload_state":3,"fileType":"application/x-nmea0183","compression":"application/zip","vesselconfigid":0,"containertrack":125619,"license":0,"uploadDate":0,"num_points":0,"left":0.0,"right":0.0,"t