Stories We Like: A Guide to the Comma
1830, American English, from Pennsylvania German hexe "to practice witchcraft," from German hexen "to hex," related to Hexe "witch," from Middle High German hecse, hexse, from Old High German hagazussa (see hag). Noun meaning "magic spell" is first recorded 1909; earlier it meant "a witch" (1856).
A jinx or curse; the Indian Sign, Whammy: I lose every time, must be a hex on me
[1909+; ultimately fr German Hexe, ''witch'']
2. A 6-pack of anything (compare quad). Neither usage has anything to do with magic or black art, though the pun is appreciated and occasionally used by hackers. True story: As a joke, some hackers once offered some surplus ICs for sale to be worn as protective amulets against hostile magic. The chips were, of course, hex inverters.