To express delight that something went awfully wrong for someone (they might have had it coming to them or deserved it in someway, or you might dislike them). For example if an insult they used backfired.
A kitchen utensil used to chastise Irish children with pre 1990s. Not quite as bad what the catholic church did to children, but an extension of the acceptable level of abuse inflicted on children in those days.