Repeating textures when using a texture atlas

Well i just replied to this and its pretty similar for a starting basis.