There are no unanswered prayers

A rare conversation between Ramkrishna Paramahansa & Swami Vivekanand

Swami Vivekanand:- I can’t find free time. Life has become hectic.
Ramkrishna Paramahansa:- Activity gets you busy. But productivity gets you free.

Swami Vivekanand:-  Why has life become complicated now?
Ramkrishna Paramahansa:-  Stop analyzing life.. It makes it complicated. Just live it.

Swami Vivekanand:-  Why are we then constantly unhappy?
Ramkrishna Paramahansa:- Worrying has become your habit. That’s why you are not happy.

Swami Vivekanand:-  Why do good people always suffer?
Ramkrishna Paramahansa:- Diamond cannot be polished without friction. Gold cannot be purified without fire. Good people go through trials, but don’t suffer.
With that experience their life becomes better, not bitter.

Swami Vivekanand:-  You mean to say such experience is useful?
Ramkrishna Paramahansa:- Yes. In every term, Experience is a hard teacher. She gives the test first and the lessons afterwards.

Swami Vivekanand:-  Because of so many problems, we don’t know where we are heading…
Ramkrishna Paramahansa:- If you look outside you will not know where you are heading. Look inside. Eyes provide sight. Heart provides the way.

Swami Vivekanand:-  Does failure hurt more than moving in the right direction?
Ramkrishna Paramahansa:- Success is a measure as decided by others. Satisfaction is a measure as decided by you.

Swami Vivekanand:-   In tough times, how do you stay motivated?
Ramkrishna Paramahansa:- Always look at how far you have come rather than how far you have to go. Always count your blessing, not what you are missing.

Swami Vivekanand:-   What surprises you about people?
Ramkrishna Paramahansa:- When they suffer they ask, “why me?” When they prosper, they never ask “Why me?”

Swami Vivekanand:-  How can I get the best out of life?
Ramkrishna Paramahansa:- Face your past without regret. Handle your present with confidence. Prepare for the future without fear.

Swami Vivekanand:-  One last question. Sometimes I feel my prayers are not answered.
Ramkrishna Paramahansa:- There are no unanswered prayers.  Keep the faith and drop the fear.  Life is a mystery to solve, not a problem to resolve. Trust me. Life is wonderful if you know how to live.

Convert a .ppk file to .pem file in Linux

We usually use .ppk file (SSH private-public keypair) to access the servers on our platform. However, we often encounter a situation where we could not connect because of the .ppk key format (SSH key format). If you are using using MAC machines, then you will need a .pem key (SSH key format) to connect to sever.

In Windows, you can use PuttyGen software to convert .ppk key to .pem key. But, you can also do this in a Linux server by installing ‘putty’ package.

Steps:

1) Install ‘putty’ package. If you are using ‘yum’ to install the package, following packages will be installed. Otherwise, you need to install these dependencies manually:

putty glib gtk+

2) Run the following command to convert the SSH keys:

puttygen private-keypair.ppk -O private-openssh -o output-private-keypair.pem

 

 

P.S. – Server: RedHat, Fedora, CentOS

How to exclude directories/files while running zip command

Commands:

1) The following command will exclude all the files/subdirectories under ‘work’ subdirectory, but retaining the subdirectory ‘work’:

zip -r foo.zip foodir/ -x foodir/work/**\*

-x = exclude the files/directories

**\* = exclude all files and directories

2) If you want to exclude whole subdirectory itself, use the following argument:

-x foodir/work\*

 

3) If you want to exclude certain files, mention the exact file name

-x foodir/work/foo.txt

 

4) If you want to exclude all .txt files from the directory and all the subdirectories, use the following argument:

-x foodir/work/\*.txt

 

5) If you want to exclude .txt files only from the directory (not from subdirectories); use the following argument:

-x foodir/*.txt

 

P.S. I’ve used .txt files as the example. I’ve just outline the command pattern. You can use any file extensions and customize the command.