The person is tying a knot called a friction hitch using a pulley and a snap hook.