Stay away from your phone. Don't visit Twitter or YouTube while waiting for the compilers to finish.
This is the most impactful productivity tips I have useful.
Plan and review your weeks. I started doing it five years ago and it really help you work smarter and don't jump to work on random things. In addition it helps you have a list of things to do every morning so you don't have to think about what to do.
I even built a product out of it (theLIFEBOARD)
With the help of some remote work software (for instance Awesun remote desktop for sharing screens and files) to keep the team productive while working from home
Closers HQ