Other times though, I choose to use some "free" time for learning. I have a number of courses queued up to work through on sites like Udemy, LinkedIn Learning, Egghead.io, etc. And there's always Khan Academy, papers on Arxiv.org, JMLR, JAIR, or old conference proceedings from IJCAI or something interesting to read and study. Not to mention a huge list of interesting Youtube videos to watch.
I still put aside a few minutes to read HN. I think it is good to stay informed. I usually have some free time when I do a longer operation. Formerly I did something else in the meantime until I noticed that multi-tasking often means that both tasks are done badly.
If there is really nothing to be done, I start some projects that might help someone at work.
2) Attack the tech debt, typically Documentation
3) Decide to take a vacation
4) Listen to Youtube - stuff were the visual is meaningless, but the talk is interesting.