Skip to content

Instantly share code, notes, and snippets.

@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 September 2, 2024 13:23
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
@marcelrv
marcelrv / Onkyo_mount_Image.md
Last active April 22, 2025 17:46
Onkyo Firmware analysis / hacking
@marcelrv
marcelrv / SeaChartCreator.md
Last active December 10, 2020 07:55
Installing and creating mbtiles with SeaChartCreator

SeaChartCreator

git clone https://github.com/stevo01/SeaChartCreator.git
git clone https://github.com/stevo01/imgkap.git
@marcelrv
marcelrv / gist:013d721b303a60fcb4456ae20c72265c
Created December 3, 2020 09:38
VNC with default desktop on Ubuntu 20.04
https://www.teknotut.com/en/install-vnc-server-with-gnome-display-on-ubuntu-18-04/#Install_Gnome
Key:
nano ~/.vnc/xstartup
Then fill in the following code.
#!/bin/sh
@marcelrv
marcelrv / gist:6e3300cd5ac85af66ef2152d60539411
Last active September 15, 2023 10:11
miio powerstrip power settings
data: {"id":3552,"method":"set_lowpower_autooff","params":[{"lp_autooff":1,"lp_autooff_delay":5,"lp_threshold":2}]}
gateway
data: {"id":7765,"method":"get_device_prop_exp","params":[["lumi.158d0001e09bd","temperature","humidity","pressure"]]}
lamp uit
data: {"id":7482,"method":"set_rgb","params":[0]}
data: {"id":7481,"method":"get_prop","params":["rgb"]}