Aspirin contains the same active ingredient (salicylic acid) as many medicated dandruff shampoos.
Keep flaking in check by crushing two aspirins to a fine powder and adding it to the normal amount of shampoo you use each time you wash your hair. Leave the mixture on your hair for 1-2 minutes, then rinse well and wash again with plain shampoo.