Ok, here's the view from your bosses side. What I realized when I became a boss is that bosses are just as human as you are. If you were the boss, and you had a fight with the wife before coming to work, or a tough time in traffic, or no sleep then you might snap at something that you normally wouldn't and for that day, lots of people would think that you were a jerk. Even though they should bite back a little they probably wouldn't because, hey, your the boss. I'm sure there is the odd employee that thinks that I am a jerk from time to time. I'm also fairly sure that those that dislike me on a more regular basis are the ones that I perceive (rightly or wrongly) to be slackers who in the corporate setting look out for themselves and really don't have much loyalty to the company goals. In this case somebody has to go, and it ain't always fair, but it's never the boss.
If your boss doesn't apologize to you for his/her comments, and ideally with an explanation, I think that you should quit. If you have no marketable skill in which you could expect to earn enough to live then you get some training and then get out at your first opportunity. Your boss is either a jerk, and everyone will loathe him on a daily basis, or in his opinion (again, right or wrong) you aren't terribly valuable around there. It might not be your work or attendance that is the issue. He may conciously or subconciously not like your new tattoo, or your haircut, or how you speak, smell, or whatever, and you're not likely to change his mind no matter how hard you work.