What happens when the government shuts down?

Federal departments and agencies have put out guidance about which programs will stay open and which ones won’t during the funding lapse.