If you have no livestock or corals I'd turn you lights off while it's cycling. Diatoms will go away on it's own. The hair algae is a bigger pain. You gotta starve it out. You could also add Phosban, which will eliminate the phosphates feeding the hair algae.
I think a better solution would be to find the cause of the phosphates and get rid of them, band-aids are never a good idea in this hobby and should only be used as such, never a solution to the problem.