From Wikipedia:
My Name Is Earl is an American television comedy series created by Greg Garcia that aired on the NBC television network from September 20, 2005, to May 14, 2009, in the United States. It was produced by 20th Century Fox Television and starred Jason Lee as Earl Hickey, the title character. The series also stars Ethan Suplee, Jaime Pressly, Nadine Velazquez, and Eddie Steeples.
Most episodes from the first season, then only a few from the rest, begin with Earl presenting the premise of the series:
“You know the kind of guy who does nothing but bad things and then wonders why his life sucks? Well, that was me. Every time something good happened to me, something bad was always waiting around the corner: karma. That's when I realized that I had to change, so I made a list of everything bad I've ever done and one by one I'm gonna make up for all my mistakes. I'm just trying to be a better person. My name is Earl.”