Invoked by one of the villains in The Dresden Files. In Dead Beat, Harry kills the Corpsetaker by shooting her in the back of the head. She returns as a ghost in Ghost Story, and gleefully points out the irony when she tries to kill Harry by shooting him in the back of the head. Since Harry himself was a ghost at the time, it didn't actually kill him, but it did destroy his spirit's physical manifestation, and at that point he was too weak to materialize himself again.
In Eternity in Death, the killer, who thinks he's a vampire, attacks Dallas. In the struggle, he's stabbed by a wooden stake.
When Daenerys marches on Meereen, the Great Masters of the city taunt her by nailing a disemboweled slave child to every milepost, for a hundred and sixty-three miles. When Dany captures the city, though:
Meereenese Noblewoman: How many must you have to spare us?
Daenerys: One hundred and sixty-three.
At the beginning of A Game of Thrones Lord Eddard beheads a deserter of the Night´s Watch, who claims that the White Walkers are back, which the reader knows is the truth. At the end of the same book he gets beheaded for claiming that the royal children are in fact bastards born of incest, which the reader also knows is true.
Joffrey Baratheon dies in the same way as Robb Stark: both are betrayed while at a wedding, dying painfully as their mothers are forced to watch, and the corresponding Game of Thrones episodes "The Rains of Castamere" plays just before both are killed. For bonus points, Joffrey had a performance of dwarves put on to mock Robb's demise!
The Hitchhiker's Guide to the Galaxy relates the story of a civilization whose world was doomed and decided to send everyone to safety in Arks... only that's a big fat lie they told to the "useless" members of society like the beauticians, telephone washers, etc. to get rid of them. Then the rest of the civilization dies when a disease spreads via dirty telephone receivers. As for the exiled Ark, it crash-lands on Earth; those useless people may or may not be, in fact, humanity's ancestors, which would explain an awful lot.
In Malevil, rogue army commander Vilmain is killed by Maurice, one of his unwilling, "join or die" recruits, who puts the discipline and training Vilmain inflicted on him to good use.
In Suite Francaise, Charlie Langelet, a collector of fine porcelain, while making his way along roads full of refugees fleeing the fear of German bombing, reaches safety in his automobile by stealing gas from a pair of young lovers. Safely returned to Paris, he orders his cleaning woman to clean his entire apartment. When she protests that she can't do it in a single day, he replies that she'll just have to work faster. Before leaving the apartment, he puts his very favorite porcelain, a figurine of Venus, on display. He has arranged to have dinner with the beautiful dancer Arlette Corail; she said she'd meet him in her car. How did she get the gas? Well, a woman has ways. Charlie hesitates before crossing the pitch-dark, blacked-out street, but thinks that there won't be any cars on the road anyhow. And then he's struck, his head smashed, by a car traveling too fast with blacked-out headlights: it's Arlette Corail. Back in his apartment, the cleaning woman has been working long into the night, getting more and more exasperated. Just as she finishes, she knocks over the figurine of Venus, smashing its head. Imagining trying to explain this to her employer, she exclaims, "I don't care what he says. He can drop dead!"
One of the nobles in A Tale of Two Cities proclaims that the starving peasants can just eat grass. The rebels make sure to stuff grass in his mouth as they drag him to his death.
In James Herbert's post-nuclear holocaust novel Domain, a particularly obnoxious character chortles with glee at having had the foresight to build himself a nuclear bunker. He takes great delight in denying his neighbours entry and when he discovers a cat has accidentally joined him ends up killing it. However, when he gets sickened by the stench of dead cat and tries to leave he discovers that the exit hatch has been blocked shut by the remains of his house landing on it.
In The Pale King, a soybean farmer was decapitated by a Think Farm Safety billboard during a tornado in 1987.
Tad Williams's Otherland applies a liberal dose of irony to the deaths of all of the members of the Grail Brotherhood conspiracy. Many die by committing suicide, believing that they are uploading themselves into virtual bodies, not knowing that the procedure has been sabotaged by Dread. (For further irony, the process does work, and the Other ends up using it on two of the heroes.) Shortly afterward, Daniel Yacoubian, a powerful general, is killed by getting stabbed in the chest by a teenage boy. After Dread's apocalypse, the remaining members die in similarly ironic ways: Jiun Biao, the powerful financier, is killed by a giant bug in Kunohara's simulation. David Wells, software mogul, is killed by Dread in a You Have Failed Me. And Jongleur himself dies at the hands of his own creation.
In Tim Dorsey's first novel, Florida Roadkill, an assassin who is a member of a Satanic cult is preparing to sacrifice Serge and Coleman (By kneeling in the middle of the highway and praying in black clothing in the middle of the night) when he is run over by a bus full of devout Christians.
The backstory of the Vorkosigan Saga includes the tale of Lord Vorloupulous, who tried to get around the law forbidding private armies by hiring 2000 "cooks", arming them with butcher knives, and sending them to carve up his enemies. The Emperor was not amused, and sentenced Lord Vorloupulous to death by starvation.
The Twits are offed by gluing them upside-down to the floor after they have tortured Muggle-Wump and his family by making them stand upside-down on top of one another.
Santer, the murderer of Winnetou's father and sister, is crushed by the very gold that he has been after from Winnetou I to Winnetou III.
In Comrade Death, Sarek is killed by the masterpiece chemical weapon that bares his name. "Sarek's Last Word" is the pinnacle of his company's weapon research and so perfect that it can't even be contained and stored.
Second Apocalypse: The corrupt Nonman king of Ishterebinth is constantly anointing himself with oil as if to prove his authority. When he's challenged, an enormous Nonman hero showers the king in sparks with a blow of his sword, igniting the oil and burning the king alive.
In The Mad King, King Leopold several times has his bacon saved by his American cousin Barney performing an Emergency Impersonation, but instead of being grateful he becomes obsessed by the idea that Barney will one day perform a permanent switch and steal his life. Near the end of the novel, he tries himself to steal Barney's life (specifically, to gain the hand of the woman they both love but who loves only Barney) by impersonating Barney — just at the point when the villains decide their best course is to try and get back in the king's good books by assassinating that American he's so obsessed with...
In The Stand, Harold rigs a bomb to the house where many of the community members are staying. With it, is a videotape with a Take That! speech recorded into it, intended to be played shortly before the bomb blows up. However, while the bomb does work, Nick (who tries to disable it) doesn't hear the message because he is deaf.
After disabling the park's security system, including the electric fences that kept the dinosaurs in their enclosures, Nedry realizes he got lost on his way to the port during a storm, decides to sell the stolen dinosaur embryos another day and go back to H.Q. before anything goes wrong. He crashes his car, and when he gets out, he encounters a 20 foot long Dilophosaurus that kills him and eats him.
At around the same time, once Alan Grant rescues Hammond's grandchildren, and the grown T.rex goes away after attacking Malcolm, Ed Regis comes out of his hiding spot, embarrassed that he wet himself, trying to act calm and in charge. He encounters the Juvenile Rex which is less than 20 feet long, he tries to shoo it away like he would an over affectionate dog. Then it bites him. Grant takes the kids into jungle while Regis gets eaten.
Dr. Wu, head geneticist at InGen, was disemboweled by a pack of Velociraptors that he had created.