You could smash your toes with a hammer to distract yourself from the pain.
Oh sorry, you were looking for a less permanent solution? Either don't get drunk in the first place, or eat a lot of starches/carbohydrates I.E. veggies and bread while you're drinking. There's no real after-the-fact solution.