A trick I use is to start something "easy" towards the end of the day, but not finish it. That makes it easier to get the ball rolling the next morning.
Wikipedia has more details on MBTI, and there are online self-tests for your own MBTI classification.
Disclaimer: Note the "Criticism" part of the Wikipedia page. MBTI is AFAIK not a tool that professional psychologists would use. Nonetheless, I find it useful in order to find similar people on the internet. For example, if I want to learn a new skill, a search query like "[thing] tutorial for INTJ" gives me way better results than just "[thing] tutorial" because I get recommendations from people who think in similar ways.
Basically I am able to (mentally and physically) walk away from work and let go of it and go home and game or work out or whatever. Then, the next day when I sit down again, I get my bearings and see where I'm at and then proceed!
There are a few exceptions to this, of course, but it's always with hard problems I become absolutely OBSESSED about. For example I couldn't find an XML parser in Elixir a couple weeks ago that I liked, so I was faced with writing my own... which I did... and then released as open source https://github.com/pmarreck/mega_xml but I was literally up until 4:30AM one night figuring out how to turn an event-based XML parser callback mechanism into an Elixir Map datastructure (something I had never had to do before, but which I somehow knew I was barely capable of figuring out, lol). It was extra tricky (for me) due to the lack of mutability