making hay

(slang) profiting from or taking advantage of something while one has the chance, especially having a good time while one can. A variation of the phrase make hay while the sun shines.