@paleo_dragon: It's an episode from Stargate SG-1. Don't remember which one, but the general plot is O'Neil and Teal'q get stuck in a time loop, and try to escape, temporarily giving up and engaging in shenanigans back at SGC, including teeing golf balls into the Stargate and making out with Carter.