California dumps have piping under the waste to trap the methane they have methane generators that trap the gas and it’s used to fuel their trucks.
Recycling at work
Our local landfill has three containerized diesel generators running off of the methane. IIRC, several thousand local homes get their electricity from these.
A better idea is to feed these scraps to Black Soldier Fly larvae, then feed the larvae to chickens, tilapia, pigs, etc.
Or to Woke Environmentalists?
https://www.youtube.com/results?search_query=uses+of+black+soldier+fly+larvae+