Six Truths Life Teaches You Along the Way

Sometimes we flip through pages of different self-help books, hoping they’ll prepare us to face life. While they may provide a blueprint, they cannot hold your hand and guide you through every stage. We end up realizing life through our own lived experiences. Sometimes those experiences are nice, sometimes they’re harsh. Here are 6 truths that life will teach you at different stages. Read on to be prepared for them.

No one’s coming to save you
Stuck in a toxic job? Instead of going to every colleague and nagging about it, find your own way out and don’t expect anyone will fix it unless you decide to leave or upskill yourself for something better.
The human brain functions in a way that every time it gets stuck with something, it starts looking for a hand. While sometimes it’s absolutely important to look for help, there will be a time that makes you realize that only you are capable of dragging yourself out of that situation — not a friend, not your therapist.

Comfort zone holds you back
Staying comfortable feels like leaving a peaceful life, just like ‘the one we dream of,’ but this peace is short-lived. You become so used to being in your own comfort zone that, after a point, it starts pulling you back from reaching your potential.
So, if you avoid public speaking because you are not comfortable, you’ll never build confidence or leadership qualities, and you’ll be witnessing others snatching away your opportunities.

Ignoring your triggers delays healing
If you see something strongly triggers you — anger, fear, jealousy, or deep hurt — it usually isn’t just about the present moment or the person who did the action. It’s often tied to unresolved emotional pain or trauma from your past that is not gone yet.Instead of reacting to others, try to look at yourself from the inside out and resolve your own problems first before giving it back to the people who triggered the emotion.

The quietest voice holds the most influence
People often ignore the ones who are quiet in a room full of noise because it is often seen that they are silent because they don’t have much to contribute to the discussion. The Dunning-Kruger effect explains that the less intelligent you are, the more you overestimate your cognitive abilities. It takes a level of maturity and emotional intelligence to be aware of one’s own strengths and weaknesses and contribute to a discussion when you have something extremely conversation-worthy to add.

It’s safer to be alone than with drainers
Eating alone, sitting in a hillside restaurant, is much more fulfilling than eating in a congested restaurant when people are not even bothered about your existence or they are just using your presence to rant about their life. Life gradually teaches you that solitude is healthier than toxic company.

You are replaceable
Sometimes success makes us a little arrogant or maybe we forget the people because of whom we got the taste of success. The truth is, nothing is permanent, and everybody in a professional setup is replaceable. If a certain job starts making you feel that nobody will ever replace you, be ready with the truth that someone better can come in the next second and your higher authority will not think twice before replacing you. Be humble to everyone as you never know whom you may need in which phase of your life.

Connect to host application from a container at a specific port

I am running an application on host machine on port XYZ.

I was running a docker container and from the container, I need to connect to the application on the host machine on port XYZ

One way which I found out was to restart the container with the following flag

1
--add-host host.docker.internal:host-gateway

With this addition, you can refer to the application on the host machine from inside the container by going to host.docker.internal:XYZ

How to install Hexo

Follow the steps to install Hexo.

Assumptions:
Nodejs is already installed on target system

  1. This will install Hexo CLI on to your system

    1
    npm install hexo-cli -g
  2. On the parent folder where you want to create your setup for your website. let’s say “mywebsite”. This command will create a folder “website” with all the required files and sub-folders

    1
    hexo init website
  3. Initiate and set up

    1
    2
    cd website
    npm install
  4. Start the server

    1
    hexo server

Saving current container in docker

I started a ubuntu container in docker and installed some new packages, edited some files and made it so that I can work with it in the future.

Now it I stop accidently delete the container, all my modifications will be lost.

In order to make sure the modifications are saved and I can reuse the same image as and when I need, you need to save the image in your docker account

1
docker commit <containerid> lalitmehta/<container_name>

Any time you need to pull the saved image and run, follow the following step:

1
docker run -ti --entrypoint=sh --name=<name> -p 8081:80 lalitmehta/<container_name>