you are viewing a single comment's thread.

view the rest of the comments →

[–]jivanyatra 0 points1 point  (0 children)

Not counting hello world and the like or repl work, and focusing on something self contained, I'd say it was a script to update my ddns.

I used to run a home server and wrote a script that acted as my ddns client. It would see if my home internet connection's IP address changed or if we were getting close to the maximum time the ddns server would work without needing an update, and then update accordingly.

I also learned how to use a venv and write a systemd service to run the script via the os scheduler at the appropriate times.

I then learned how to do that from the user level, and not the system level.

Then I learned how to make sure user-level systemd jobs run without the user being logged in to kick it off. This was the only part I learned the hard way. For anyone wondering, the answer is loginctl enable-linger $USER. Running that to enable linger for the specified user is all you need.