I'm surprised you lasted that long -- there is no reason for anyone to scream at anyone unless they do something incredibly dangerous or careless; you only do this so they understand the severity of their action. For example smoking next to flammable materials, improperly handling chemicals, etc...
He had a lot of idiosyncrasies like that.
Another example:
one day he told me I shouldn't leave windows (on the computer, not physical windows) open when I go home at the evenings because it looks like I left work in the middle of doing something.
After that I made sure I minimized all the windows before leaving.
A few months into my first job (20+ years ago) had me going out to a customer site to fix a problem at about 11pm, getting home again at about 3am. Next morning I got a bollocking from the same guy who had asked me to go onsite about coming in 5 minutes late!
I managed about 7 months in that job before getting a research job. However, I did learn a lot about the politics of workplaces in that time.
I would also occasionally notice him standing behind me looking at my monitor over my shoulder (he was a 'hands on' kind of manager).
He was really surprised when i quit after a few months.