That's not the sadistically funny part. I usually don't laugh at geckos getting fried by our electric fence. The funny part, was that because the gecko was touching the wire and the gate at the same time, it passed the current from the wire to the gate and, as a result, the whole gate became electrified.
So, here comes our guard Charles to open the gate. He was hearing the same popping that I was and was aware that there was some creature somewhere getting barbecued, but he wasn't aware that the current was also passing through the gate. And neither was I, until I saw him jump back as he tried to open the gate. Needless to say, we both got a good laugh out of what happened.