Regarding tea, the caffeine content depends on the type of tea and how you brew it. Pu-erh (a type of tea), properly brewed, can come close to coffee in terms of caffeine content.
Caffeine is also a common ingredient in over-the-counter pills intended to help treat stress headaches.
Regardless of how you get your fix, however, please be careful. Too much caffeine can lead to serious problems.