Barely squeaking by (or barely passing), or pulling it out of your ass.
In reference to the radio show, "The Bobby Bones Show" - when the cast was playing The Name Game, the cohost Lunchbox barely squeaked by naming "Free Willy" as a "Bill" or "William," thus causing controversy in the studio.
"So did you pass that English final?"
"Yeah, I totally pulled a Free Willy! I got a D minu