To Avoid Purgatory, Do as Follows
1. In every prayer you say, every Holy Mass at which you assist, every Holy Communion you receive, every good work you perform, have the express intention of imploring God to grant you a holy and happy death and that you will go straight to Heaven when you die. Surely God will hear a prayer said with such confidence and perseverance.
2. Always unite and conform your will with God’s will. It is in every sense the best for you. When you do or seek anything that is not God's will, you are sure to suffer. Say fervently, therefore, each time you recite the Our Father: "Thy will be done"
3. Accept all the sufferings, sorrows, pains and disappointments of life, be they great or small: ill health, loss of goods, the death of your dear ones, heat or cold, rain or sunshine, as coming from God. Bear them calmly and patiently for love of Him and in penance for your sins. Of course one may use all his efforts to ward off trouble and pain, but when one cannot avoid them let him bear them manfully.
Impatience and revolt make sufferings vastly greater and more difficult to bear.
4. Christ's life and actions are so many lessons for us to imitate.
The greatest act in His life was His Passion. As He had a Passion, so each one of us has a passion. Our passion consists in the sufferings and labors of every day. The penance God imposed on man for sin was to gain his bread in the sweat of his brow. Therefore, let us do our work, accept its disappointments and hardships, and bear our pains in union with the Passion of Christ. We gain more merit by a little pain than by years of pleasure.
5. Forgive all injuries and offences, for in proportion as we forgive others, God forgives us.
6. Avoid mortal sins and deliberate venial sins and break off all bad habits. Then it will be relatively easy to satisfy God's justice for sins of frailty. Above all, avoid sins against charity and against chastity, whether in thought, word or deed, for these sins [and the expiation for them] are the reason why many souls are detained in Purgatory for long years. Practice little acts of supererogation.
7. If afraid of doing much, do many little things, acts of kindness and charity, give the alms you can, cultivate regularity of life, method in work, and punctuality in the performance of duty; don't grumble or complain when things are not as you please; don't censure and complain of others; never refuse to do a favor to others when it is possible.
These and suchlike little acts are a splendid penance, but the most perfect penance is to unite and conform you will with God’s Holy Will.
8. Do all in your power for the Holy Souls in Purgatory. Pray for them constantly, get others to do so, have Requiem Masses offered for them, gain plenary indulgences and partial indulgences for them.
9. There is no way more powerful of obtaining from God a most holy and happy death than by weekly Confession, daily Mass
10. A daily visit to the Blessed Sacrament, kneeling in the presence of the Eucharist Christ, with your eyes fixed on the Tabernacle, while you say a few prayers such as: "My Jesus, mercy." "My Jesus, have pity on me, a sinner" "My Jesus, I love You" "My Jesus, give me a happy death". Always remember to make a Spiritual Communion.
http://www.shrineofsaintjude.net/home1606.html#12. Those Who Earnestly Help the Holy Souls May Well Hope to Avoid Purgatory