Sleep 4 hours twice per 24 hr cycle, spaced 10-14 hours apart. No caffeine, lots of water. This makes a massive difference.
I reach my "final form" when adding a keto diet to the mix. No energy crashes ever, it's like being a machine. It can also be fun.
That being said it's nontrivial to schedule things in that way, and overall I'm happier when i get to see my family more by sleeping an 8 hour block in exchange for the performance benefits.
Also don't forget to do creative/fun things outside work. Watching TV doesn't count. Nothing kills my productivity faster than feeling like a work robot.