Mercury(II) fulminate

Mercury(II) fulminate, or Hg(CNO)2, is a primary explosive. It is highly sensitive to friction, heat and shock and is mainly used as a trigger for other explosives in percussion caps and detonators. Mercury(II) cyanate, though its chemical formula is identical, has a different atomic arrangement; the cyanate and fulminate anions are isomers.
First used as a priming composition in small copper caps beginning in the 1820s, mercury fulminate quickly replaced flints as a means to ignite black powder charges in muzzle-loading firearms. Later, during the late 19th century and most of the 20th century, mercury fulminate or potassium chlorate became widely used in primers for self-contained rifle and pistol ammunition. Mercury fulminate has the distinct advantage over potassium chlorate of being non-corrosive, but it is known to weaken with time, by decomposing into its constituent elements. The reduced mercury which results forms amalgams with cartridge brass, weakening it, as well. Today, mercury fulminate has been replaced in primers by more efficient chemical substances. These are non-corrosive, less toxic and more stable over time; they include lead azide, lead styphnate and tetrazene derivatives. In addition, none of these compounds require mercury for manufacture, supplies of which can be unreliable in wartime.
Preparation.
Mercury(II) fulminate is prepared by dissolving mercury in nitric acid and adding ethanol to the solution. It was first prepared by Edward Charles Howard in 1800. The crystal structure of this compound was determined only in 2007.
Silver fulminate can be prepared in a similar way, but this salt is even more unstable than mercury fulminate; it can explode even under water and is impossible to accumulate in large amounts because it detonates under its own weight.
Decomposition.
The thermal decomposition of mercury(II) fulminate can begin at temperatures as low as 100 °C, though it proceeds at a much higher rate with increasing temperature.
A possible reaction for the decomposition of mercury(II) fulminate yields carbon dioxide gas, nitrogen gas, and a combination of relatively stable mercury salts.
In popular culture.
In the 1955 comedy film "Mister Roberts", Ensign Frank Pulver test fires a fulminate of mercury firecracker and blows up the ship's laundry, spreading soap suds across three decks. 
In the TV Western series "Have Gun - Will Travel", Season 4 Episode 10 "Crowbait", Russell Collins plays prospector Crowbait, who is carrying fulminated mercury. Paladin worries about being blown up while taking a pack sack off.
In the episode of "Breaking Bad" titled "Crazy Handful of Nothin'", Walter White used mercury (II) fulminate ("MythBusters" found that a little silver fulminate was added in) to blow up Tuco Salamanca's headquarters.
In the 1972 episode of "Mannix", called "A Walk in the Shadows", fulminated mercury is determined by police to be the explosive material used in a murder, by blowing up a boat.