An example of these two could be described in a classic superhero/villain situation:
Through a series of events, the superhero finds himself in a nearly assured loss and is now at the complete mercy of the diabolical evil bad guy. Being so proud of himself and his victory and arrogant enough to think that his victory is guaranteed (Hubris), villain guy decides to do a stupidly long monologue about all his evil plans and spilling all the beans because he’s a) mocking the superhero and b) believes that absolutely nothing can be lost.
Due to the details of the story or just for it taking so long, the hero breaks free and kicks the villain’s butt. it could be said that the fatal flaw of the villain (hamtaria), was his hubris that gave the hero the time to turn the tables on him.