I have a tradition that I do at least once (and ideally twice) a year.
I go somewhere far away where I have the ability actually code or write or whatever I need to focus on.
As an example, I am on my fourth trip right now to Spain, and specifically, to a very small town on the Atlantic called Conil de la Frontera. I have a AirBnB here that I love and that is super affordable out of season (like now: https://www.airbnb.com/rooms/19446417).
What makes this city and stay great for me is that 1) the place has great WiFi and is very comfortable (indoor and outdoor workspaces) so I am super productive, 2) the town has great and inexpensive food so I don't have to cook, and 3) it has kilometers and kilometers of beach, so when I get tired or face a hard design challenge, I go walk until I am ready to focus again or have solved the design challenge in my head.
I've done this with other folks and solo and both have been great. I am just amazed how much I can get done and how much higher quality my work is on these focus weeks.
Do other people have places like this that they'd like to share? Or alternative approaches to get to the same result?