My dad was an electrician and almost anytime I helped him on a job it seemed like I as the one getting electrocuted. "Let's work in this drop-ceiling while on aluminum ladders" POW!/blinding light. "I'll just be checking the breakers in the panel while you wire that outlet" ZAP!
I thought you were supposed to hold the red wire and black wire or white wire or blue wire in your hands by the plasticky part and then rub the metal ends together. If you get sparks, you got a live one. Right? no?
Electrics aren't so scary, you just need to be methodical about it and make sure a circuit is dead before doing anything much with it. Sometimes it needs to be live, in which case you just be careful what you touch
What's fun is when you're working on one wire (known to be dead) and when trying to trace it you pull out the exposed ends of another wire, with no way of knowing whether or not it's live. That one was interesting, in the end I used my voltmeter to check every possible pair to make sure there was no voltage on it anywhere, then traced it back to the breaker box. It turned out to have been cut off but the ends left in the breaker box. That was fiddly to remove, but is now sitting in my growing pile of dead cable I've pulled out and replaced.
It's been a while since I've had insomnia. Can't figure out why, just got it. Sooooo, sitting at the laptop at 12:33 in the morning wishing I were sawing logs.
Try meditating. Often seems to help me. Of course when I can't sleep it's usually because my brain won't SHUT UP, often because I'm learning new music.