Take the opportunity to acquire skills for the inevitable firing that’s coming later.
There was a story like that on Tales From Tech Support (buddy automated all his work while not making himself essential to support the automation) and when the guy got caught and had to find another job, it had been so long since he had actually worked that he had forgotten all about programming.
Or just get a second job and wait for the first one’s paychecks to stop rolling in.
There might be an issue with some contract clause about the company you work for owning anything you create while at work so if you’re working two jobs at once it can create quite a mess
Eh, they can’t touch anything that’s not on their equipment, and they would have to prove that you did it while on their clock. It could be that you took your “breaks” from that job (legally allowed) to get all the work done for the other company, and you are just really productive in those 15-min breaks or whatever (or you pre-work outside of work hours and submit your work in those “break” periods). If it’s not on their hardware, they’d have a rough time proving it.