by preparing, taking initiative, trying something new and take risks.
Opportunities need to be sought. You need to prepare for your opportunities by learning.
As they say, it is better to be prepared and have no opportunities than have opportunities and not being prepared.