Remove snow from on top of and a few feet above and behind the ice dam using a roof rake or push broom. Although this is not entirely necessary, it will lower the amount of snow and ice that the sock has to melt through.
Cut the nylons so that the legs are separated, if they are not already separated.
Fill each nylon stocking with deicing compound. Choose a salt or alternative deicer that will not harm the roofing material. Avoid rock salt, sodium chloride, which can corrode or discolor roofing materials and instead use a deicer labelled as safe for roofs.
Tie off the open end of each stocking.
Lay the stockings across the ice dam. Make sure that each stocking extends slightly beyond the roof or gutter edge so that it can create a clear drainage path. Lay stockings every several feet as needed, concentrating the stockings near where any leaks have occurred or are most likely to develop.
Check the status of the roof ice and stockings every few days. Move and refill or replace the nylons as needed.