a hair of the dog that bit you

A hair of the dog that bit you in speaking of being healed by the very thing that caused you pain and discomfort, such as in the case of someone with a hangover healing that hangover with the very drink that caused it in the first place. It started in Scotland when the hairs of the dog that bit the person would be applied to their wound to avoid evil consequences.