The way to attain compunction is an attentive life. ‘The beginning of repentance comes from the fear of God and attention,’ as the holy martyr Boniface says.
Compunction comes when you consider how much you have grieved God Who is so good, so sweet, so merciful, so kind, and entirely full of love; Who was crucified and suffered everything for us. When you meditate on these things and other things the Lord has suffered, they bring compunction.
God smiles on the compassionate heart. Every time a beggar knocks at your door, try to perceive Christ Himself under the humble disguise. Would you, under any circumstances, let Christ knock in vain? The moral qualities of the individual beggar have nothing to do with it; that is Christ's concern, not yours. Who are you to judge your brother? Christ is using the beggar’s hand and mouth to test your compassion of Himself. Will you fail Him?
The dread Mysteries, full of such great salvation, which are celebrated at every Liturgy, are also called a Thanksgiving [Eucharistia] because they are the remembrance of many benefits, and they signify the culmination of God's Providence towards us, and in every way cause us to be thankful to Him.