One of my neighbors (not sure which one) has a cat that keeps defecating in my yard, I keep finding remnants every other day.
While amusing, I don't have time to build the motion activated scare machines depicted in these videos
However, commercial, and home made scented products seem to have mixed reviews:
Further, it seems that using a low voltage electric fence to deter cats and dogs is not allowed in the US.