This is hilarious. Zapping yourself in the brain with TMS (transcranial magnetic stimulation) is probably a delicate procedure, but there are people out there who are willing to try it, using equipment they made themselves.
The inimitable Ben Krasnow (of "Applied Science" YouTube fame) takes it on. [Part 1][Part 2] (though he does say he has experience with this from his day job)
Open-rTMS.sourceforge.net. The project bills itself as "very early alpha stage", and no code changes have happened since 2014, though the last commit message is "Everything is working".
software to simulate what effect on the brain different magnetic fields would have [1][2]
Possible dangers of doing DIY TMS:
Side effects of professional TMS are: Headache, scalp discomfort at the site of stimulation, tingling, spasms or twitching of facial muscles, lightheadedness, fainting and seizures (very rare), and the induction of electrical currents in implanted devices such as pacemakers and defibrillators.