I picked this tip up from a sewing magazine several years ago. Use an old pill bottle with a child-proof top to store discarded pins, needles, razor blades, craft knife blades, etc.

This keeps dangerously sharp objects away from children and pets, some of whom will dig in the trash. When the bottle is full, the entire thing can be tossed, and even if said children or pets get it out, they can’t get at the bent pins and razor blades inside the bottle. And no rusty needle will poke through a trash bag into a garbage worker’s hand.