1906 (of a motor vehicle): to operate with maximum power, to function at its best—1907 (of a person or thing): to perform at peak level, to be on top form—conversely, 1910: ‘to miss/misfire on all cylinders’
to engage in pointless or futile activity in the face of disaster—USA, 1969—apparently first used, and perhaps coined, by Elizabeth Carpenter, press secretary for the wife of President Lyndon B. Johnson
American English, 1874—used in particular of stupidity, as in ‘dumb as a bag of hammers’ and variants—the underlying notion is probably that anything is dumb that does all the hard work
Britain, 1747: dew of the kind that settles on mountains—Scotland, 1816: whisky or other spirit, especially when home-made or illicit (originally in reference to whisky distilled in the Highlands, i.e., in the mountainous region of Scotland)
UK, 1882—‘penny’ refers to inexpensiveness, and ‘puzzle’ to the mysterious nature of the ingredients—perhaps also in humorous allusion to ‘penny puzzle’ in the sense of a puzzle-card sold on the street for one penny
also ‘in a wad’, ‘in a knot’, etc.—to become unduly agitated or angry—the plural noun ‘panties’ refers to short underpants worn by women or girls—American English, 1975