Back when I worked 3rd shift (midnight to 8am), I had to commute by bike for 3 months in the summer. I'd wake up around 10pm, get showered and ready to ride just before 11pm, then ride the 12 miles to work. I made sure to be well lit, and to take up the entire lane, and I never had an issue with cars buzzing me. I'd get home around some time between 9:30 & 10:30 am, depending on how late I'd have to work. Then I'd stay up until about Noon or 1pm, 2pm at the latest before heading to bed. I can sleep anywhere and through anything, regardless of noise or light, so that was never a problem.