As for the coke - It's true. It's because of the potassium in red can classic coke. (only red can coke has it) You could also eat a banana. I always drink coke when I have a migraine and water, but I usually take my migraine meds w/ coke.
GLaDOS: "You euthanised your faithful companion cube more quickly than any test subject on record. Congratulations!"