• 6 Posts
  • 547 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle


  • I use Code OSS with clangd and the nvim extension (because Microsoft disabled their c/c++ tools) because i want access to the nrfconnect extension pack as a beginner. I don’t have to go searching in the documentation and compiling, then recompiling 10 times to self-discover the required devicetree parameters and figure out what drivers are available vs mainline zephyr.

    Plus the debug interface works well.

    For everything else possible it is vim/neovim, but I haven’t been able to find good neovim setup for nrfconnect.


  • No, ssds have a ton of wear leveling where data is shifted around and not deleted. Deleting data wears out the SSD, so it is held as much as possible with the controller. SSDs are like 10% bigger than advertised just to prolong the life.

    Even if you write the whole thing with random data then zeros, it will still have blocks in unaccessible (to normal users) places that contain old data.

    Always best to use disk encryption or keep any sensitive data in filesystem encryption like plasma vaults or fscrypt.





  • I am doing something similar. I use OIDC for everything possible.

    Authelia is quite picky about everything being correctly populated, but if I remember right, the documentation doesn’t do a great job of explaining different variables for someone outside of the security industry (similar with traefik). I found a good tutorial via search that got all of the defaults set up, then playing with the options to my liking and now it is just copy pasting the condiguration per app that I want to enable, generating an key and hashing it.

    If you want, I can sanitize my config and share it?


  • Hmmm, I used littlefs for SD card writing at work with an STM32F0 chip. It was hell working with files when tons of essential functions like appending and seeking simply didn’t work in the STM HAL… Plus dealing with opening and closing files and appending files and having to seek in them to find what you want, parsing results, cleaning old files, etc… compared to simple circular buffer and a start and end address of relevant data that can be erased once every day or week depending on use. Even with a daily erase of the NOR chip, they are rated for 100k program/erase cycles which would be over 250 years before degradation starts. I am not dealing with a ton of data nor the flexibility of a full UI/ app storage where I would definitely just use littlefs.













  • That is true, but for embedded development it sucks because of specialty drivers, access to dbus, udev rules, etc… And distrobox with vscodium or code oss has some big big slowdowns that I can’t figure out.

    Saleae software simply won’t work consistently in distrobox, for example. Luckily they have an app image so I could just install it there and set a few settings and now it works well. Sigrok Pulseview is better but needs a few not-dependency packages to work around it.

    There is some weirdness to atomic distros and bazzite, but I am pretty happy with it!