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+
Recycling at work