A square knot will be secure and not slip.
Holding one end of item to be tied (thread, yarn, i-cord) in each hand, place the right end over the left and bring what was the right end underneath and pull it towards the left. You now have reversed the ends. Now bring the left end over the right, and bring what was the left end underneath and pull it towards the right. Pull on the ends to tighten.