Converting a PuTTY key for SecureCRT

1. Use PuTTYGen to load your existing private keys
2. Use "Conversions" to export private key in OpenSSH format named identity
3. Export your public key named identity.pub
4. Put both files in the same folder

Then Start your SecureCRT

1. Choose QuickConnect
2. Protocol = SSH2, and enter the hostname or ip address
3. Under the "Authentication" session, Only checked "PublicKey"
4. Click "Properties" at the right pane
5. Choose "Use Global public key setting"
6. Under "Use identity or certificate file" and choose your identity.pub and click ok.
7. Enter your passphrase and get connected!

Search all images in folder

find . -type f -exec file {} \; | grep -o -P '^.+: \w+ image'

How to set java path in Ubuntu 16.04

Just edit & append below code at the end of file (vi /etc/profile)

export JAVA_HOME=/home/priyan/softwares/jdk1.7.0_80
export PATH=$PATH:$JAVA_HOME/bin
echo $JAVA_HOME

/home/priyan/softwares/jdk1.7.0_80  - - - This is my location. You can add your own

How to add source codes to blog

Add this one in HTML design view in blogger page

<pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace;
            color: #000000; background-color: #eee;
            font-size: 12px; border: 1px dashed #999999;
            line-height: 14px; padding: 5px;
            overflow: auto; width: 100%">
   <code style="color:#000000;word-wrap:normal;">
>>>>>>>>>>>>>>>>>>>ADD YOUR CODE HERE<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
   </code>
</pre>