Both patterns came from Ravelry. The beard pattern is a free pattern that I changed up, just a bit. I didn't like the way they did their mustache, so I made mine differently. That pattern can be found here, for anyone who is interested.
The hat pattern I ended up buying, because I could not find any free patterns that I liked. That pattern can be found here.