In 1987, there was a sitcom called Second Chance about a man who dies in 2011, finds himself in St Peter’s office and is judged to not be good enough for heaven or bad enough for hell, so is returned to the 1980s to guide his younger self (Matthew Perry’s first regular role) to be a better person.
In the first episode, one of the two people that shows up in St Peter’s office before the protagonist does is Gaddafi, still wildly firing a machine gun as he is dying. St Peter retorts “Ah, Colonel Gaddafi. Dead at last.”
And yes, that a very young Matthew Perry.