1. Write every day.
2. Take a break every now and again. Sundays and thesis-free vacations are helpful times to do this, but as long as they don’t last too long.
3. Talk to your supervisor, even if you think your thesis is terrible.
4. The thesis is a means to an end, not the end. It doesn’t have to be perfect, it has to be done.
5. Edit. This might be even more important than writing.