What is Nostr?
Harshad Sharma /
npub1st2…9n4e
2024-04-12 05:58:30

Harshad Sharma on Nostr: Indulged in some half-asleep late night coding, and forgot about it until later next ...

Indulged in some half-asleep late night coding, and forgot about it until later next day 😆

Trying to figure out various scenarios for executing commands on FreeBSD (as current user, as root, as different user, in jail, as a user in jail etc) and write a single function that will handle them.

Here's what I came up with: https://gist.github.com/hiway/556ae670ca6a20a4faa91d6daf6f31b7

Feedback and corrections welcome if you're into FreeBSD or Elixir.

#FreeBSD #Elixir #Programming
Author Public Key
npub1st2pguq7vgs3d2rngrmul5fadyq38tfrs0kmk2703ptvts0ljqfs0a9n4e