Sine around a curve

Check this

There is another topic with different solutions but I don’t find its link