Programmers: how do you prepare for a technical interview?

Curious about the right headspace to be in, how you practice, and any other tips.