Etymology
Today it means: An expression of surprise or annoyance. Full definition →
From Jiminy Cricket.
Etymology from Wiktionary, CC BY-SA 4.0.