hoist by one's own petard
Hurt or destroyed by one's own plot or device intended for another; "blown up by one's own bomb".
He has no one to blame but himself; he was hoisted by his own petard.
verb
To raise; to lift; to elevate (especially, to raise or lift to a desired elevation, by means of tackle or pulley, said of a sail, a flag, a heavy package or weight).
For tis the ſport to haue the enginer / Hoiſt with his ovvne petar, an't ſhall goe hard / But I vvill delue one yard belovve their mines, / And blovve them at the Moone: […]
They land my goods, and hoist my flying sails.
To lift a trophy or similar prize into the air in celebration of a victory.
And when skipper Richie McCaw hoisted the Webb Ellis Trophy high into the night, a quarter of a century of hurt was blown away in an explosion of fireworks and cheering.
To lift someone up to be flogged.
Again Pilatus answered them, What shall I do to the Jew’s king? They again cried out and said, Hoist him! Then said Pilatus, What evil did he? They so much the more cried, Hoist him!
To be lifted up.
To extract (code) from a loop construct as part of optimization.
noun
Any member of certain classes of devices that hoist things.
The act of hoisting; a lift.
Give me a hoist over that wall.
The triangular vertical position of a flag, as opposed to the flying state, or triangular vertical position of a sail, when flying from a mast.
The position of a flag (on a mast) or of a sail on a ship when lifted up to its highest level.
The position of a main fore-and-aft topsail on a ship and fore fore-and-aft topsail on a ship.