* update my hosts file to block sites that suck me in (youtube, reddit and maybe even this one).
* listen to music with no vocals. For whatever reason, vocals distract me from thinking. I often use brain.fm or a "synthwave" set of songs on Spotify.
* write my ideas for architecture/code down on paper and check them off one-by-one. Then handwriting helps me.
Good luck!