Well, my DH has worked in apartment complexes for years, and has had access to many dumpsters.
At one place, there was a little convenience store right in the complex. When the Tastykake guy delivered the new stuff, he was required to trash the old stuff. If he actually offered it to someone, he could get in trouble. So he'd very carefully put it on top of the trash in the dumpster, so it was clean and easily retrievable. DH and his co-workers were bringing home quite a few free family packs of cupcakes there for awhile!