1. My favourite genres are K-Pop and Industrial – it helps that they are also very energetic genres — and my rule is that I can only listen to them while programming. Helps to really put me in the “you’re working now” space (thanks to Julian Shapiro for this tip)
2. I pick one song and repeat it for the entire day, sometimes for several days in a row. I’ve listened songs in the above genres so much that the lyrics don’t become much of a distraction, including new ones.