I have been running a bunch of new cables up to the instrument pod on our new-to-us J/109 while installing a better on-deck navigation system, including radar.
The cables run through the head under some trim in a very tight space with no room for wire ties, and they needed to stay put while I got the trim back on.
The answer was a hot glue gun. Worked a treat as you can see in the above photos and only took a few minutes.
I bought a low-temperature gun (100c) to avoid any risk of melting the insulation on the cables (105c).