For the last couple of years my sleep pattern has been crazy. Sometimes I would stay up two days in a row to rest my sleep pattern back to 9-5 schedule. I preferred to be sleep deprived as it made my job more interesting.
But lately (since a month ago) I have been thankfully able to maintain a 12/1-8:30 range sleep pattern.
I do a 15 min workout 5 days a week. I have been fasting so I eat a big meal a couple hours before sleeping. Read a book half an hour before sleep.
So far it's been working. Fasting is weight loss reasons. Also helps me personally focus since if I eat too much I get lazy/tired.
Other thing I'll comment on is regarding personal projects. I lay out a plan, when the day begins (weekend) I don't open anything (social media) I just immediately work on this project. Thankfully I can dump the most of the weekend days toward the project.