For my excess pellets, I found these great little 3 oz rubbermaid type tupperware containers with sealed lids. I put my leftover pellets in these and label them what type, AA content, and when I bought them. Then I store these small containers together in a larger sealed tupperware container in the Vegetable drawer of my bee fridge.
For whole hops I have a vaccuum packer deal (Food Saver) I just seal them in new vac bags and put those in another large sealed tupperware type container in the bottom vegetable drawer.