Nothing in life is certain and that includes your job. "Hire and fire" is not uncommon these days and the reasons could vary. You need to be prepared to cope with this and here are a few steps that you could take to make the situation better.
1) Avoid Credit Cards
It is better idea to avoid credit cards in such situations as it will tempt you to spend more. Difficulty arises during making payments. In case if you miss your due date, you will liable be pay huge interest and fee for that. Use credit cards only in case of emergencies.
2) Work on a budget
Prepare a budget and work around that. It will help you spend less on unnecessary things. You must definitely cut the cost on spending on luxury items.
3) Settlement amount
Settlement amount will depend on the company and type of your employment. It may vary from small to huge amount. Once you have the amount allocate it wisely and invest the rest in financial instruments.
It is not necessary to pay off debt and clear it immediately if you are cash strapped. Make sure you pay your installments on time and close it on priority.
5) Loans for emergencies
Individuals can avail different loans on their investments such as loan against gold, loan against securities, loan against mutual funds etc.
6)Alternative income source
During your job hunt period, one can also look for passive incomes from hobbies, renting your extra rooms etc.