Whole nuts in their shells are a long-storage item, with many kinds of nuts having a shelf life of several months. However, they do vary widely and, unless stored in the refrigerator or freezer, it is possible that some nuts will suffer a serious loss of flavor or texture. As long as their fats have not gone rancid, it's easy enough to restore them to usable condition by baking the nuts lightly.
Video of the Day
Shell as many nuts as you will need at one time. Pick over the shelled nuts carefully, discarding any that are shriveled, visibly moldy or have off smells.
Preheat your oven to 350 degrees Fahrenheit. Spread the nuts in a single layer on a parchment-lined baking sheet.
Bake the nuts for 10 minutes, shaking and turning the pan halfway through the baking time to ensure that they toast evenly.
Remove the nuts from the oven and let them cool. Taste one to ensure that there is no unpleasant flavor, and proceed with your recipe.