1 Ground chili peppers, black or cayenne pepper-some squirrels can get used to this and will eat through it. 2  So it is a temporary measure. 3  Fake snakes / hoses, marigolds, hair, predator urine, cats, pin wheels, coffee grounds, and soap are all things that usually do not work or work only on a very temporary basis.