When you know who you are, and are confident in your values, then no amount of pressure from the outside world can make you bend a knee.
That's not to say I'm there yet. I'm still a wishy-washy moral and ideological coward, but I'm slowly building my foundation through good role models (mainly old books from Russia).
The Russian monks are one example of moral fortitude. Whether or not their morals are agreeable, they certainly are unwavering.
Another would be Diogenes.