For crawling, chewing bugs in the garden - boy have I got the answer for them...
Get yourself some whole cloves, bayleaf, crushed chili peppers, and some fresh or even granulated garlic. You now have the spices that will send the bugs packing! For earwigs and other creepy crawly critters, make a complete circle of torn pieces of bayleaf around the stem of your plant. The spices shouldn't touch the stem, but be pretty close. If the problem is severe, make the circle thicker.
On top of the pieces of bayleaf, or beside it, make another circle of the whole cloves which will deter ants and other bugs too.
Then add a thin layer of crushed chili peppers, and garlic, if you are really having a nuisance of a problem.
You must be on top of it the rest of the season, adding fresh spices once a week or every two weeks, depending on your results. You must also add new spices after it rains. It isn't enough to just throw some spice down and forget about it the rest of the season, because like anything, the spice loses it's potency over time and needs to be refreshed to be effective.
I have 4 shrubs outside that are one of the bugs' favorites to munch on - Lycium Barbarum. If it weren't for my spices, I know they would be nothing but twigs! They are all growing completely untouched and unchewed because of the spices. I just love it. These shrubs to the bugs, are like steak to a lion, and they would have absolutely devoured them if I didn't do what I do.
Hope this advice helps, because I've been doing it for years, with excellent results. Be consistent, and the bugs don't stand a chance.
: )