I snip rosemary twigs off and put them in my cupboards. They repel the weevils that seem to show up occasionally in the grains. I just toss a sprig into the back of each shelf and put the groceries in front of them... Every few months I brush out the old bits and toss a new one back there.
I have also put a few fresh rosemary leaves in each section of an ice cube tray and filled the tray up the rest of the way with chicken broth. Once they're frozen I pop them out and store them in a baggie in the freezer, and when I'm making soup, I drop a couple in.