Always do things with the long-term in mind.
What type of person do you want to be?
What companies do you want to build?
What community do you want to live in?
If you keep your focus on the long-term, and appreciate that choices you make every day are the building blocks of what long term will look like, it will be a whole lot easier to avoid the allure of shortcuts and of short term gains.