Red onion plus whole coffee beans make up the best natural pest repellant. Simply mix crush the two with mortar and pestle, soak for about 2 days and spray or spread in and around the dark places of your kitchen or where the pests are.

Many are nocturnal so do this before you sleep to make sure they are not comfortable when they come out at night to eat your food. Leaving a clean kitchen at night helps very much.