How to show a user's country flag in his profile?

An example

bebfbc4b76b5ad47a8fc928845a5ce14b5b12506[1]

meta.discourse.org/t/39109

A ready plugin