Composting

Can I compost olive pits, pistachio nut shells, and corn cobs after they’ve been boiled?