Jon Thomas on hitting the triangle from the overhook in closed guard, including the anti-stack motion that keeps your hips on the floor when they drive in. From his Grapplearts closed guard course.
A full tour of butterfly guard for gi and no-gi: underhook and overhook grips, the classic hook sweep, entries to X guard, the arm drag and a quick triangle when they post.
Getting from closed guard to a front headlock: overhook, post, get your head above theirs and transfer the legs outside, then finish a high-elbow guillotine.