Of course, you can impossibly take spare parts with you, for everything that could possibly break. What I take with me, depends on where I will go. Today, bicycles can be found wherever people live. Most parts, such as tyres, tubes, cables... can be found in most towns, as long as you need nothing exotic.
Should you need something not available, parts can always be sent by post. This works quite well, as long as they know at home, what you need. For that reason, I always leave a list of spare parts at home, just in case.
Usually I have the following spare parts with me:
Before you pack your tools, check, what you really need for your bike...
I have replaced most screws with socket screws. Now I only need a set of allen wrench and one spanner for the counter nut.
All tools I transport in a case made of jeans: