Take care of yourself first. Eat well, sleep, remember nobody is likely to die today because of anything you do. Meditate. Take long walks in nature, be with your loved ones.
Watch that tricky urge inside yourself to "do more" and learn to build a relationship with it. Question its motivations - why does it insist on that?
And yes, productivity first, then motivation - Just Do It, as the slogan goes! I have a lot of success with this.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.