As you might know, I really love Metal and Hard Rock. But while listening to those, I cannot concentrate on logical things too well as I feel like partying :D
That's why, personally, I try to get maximum concentration by mind tricks. One is to sync both halves of your brain by listening to a specific clear rythm (this trick is often used for meditation and hypnosis). There are some nice dubstep and DnB tracks without a lot of base-drops which are very fitting. Try to select something which is not too slow, but not too fast. I like Nexus Game Revolution a lot. It helps concentrate on programming and gaming :)
Other than that, especially in the evening when just writing code but not thinking too much about architecture (because I already decided and set up most stuff), I really like Cyberpunk Music. It just gives certain background vibes. It's hard to explain why, but it also keeps me motivated even late at night!