But I know I can force myself through hard stuff (prolog, category theory, ML research papers) but only if I can kick out instant gratification for a while (reddit, hn, videogames).
I remember this week more than 10 years ago where my graphics card died, and had to go with this ancient card with zero acceleration, and no videogames. I was surprisingly productive that week.