自贱自受与旁人无关
[zì jiàn zì shòu yŭ páng rén wú guān]
'Humiliating oneself and suffer the consequences, not caring about what others might think', it describes one who has done degrading things to achieve something (not necessarily negative) in order to achieve some end.