Wednesday, September 28, 2022

A trick to manage all your passwords


I have seen most of the people set same password for different websites. This character of people will make the job of hackers easy. So here is a tip to manage all your passwords without a password manager.

Let's see how to set a password:-

To create a password that you can guess and can't remember easily, is to make a pattern. A pattern that can be guessed only by you. 
By making a pattern you will have different password for different websites.

Suppose your name is John Doe and you are creating a password for your Facebook account:-

You can take your last name as the first word that makes Doe

Next we will add some numbers. Assuming John Does's birthday on 29th July, we take 29 and flip it. So we have 92.

Now our password is Doe92

We can set these part as static. It is common for your every password. After these characters everything will be different. You can chose that part also:-

for facebook you can select each odd characters from facebook. 
That means fcbo


Adding these characters to the password makes Doe92fcbo

You can add special characters in between each parts. 

Doe@92#fcbo

In a similar way your Instagram password would be Doe@92#isarm

Now we have a strong password to use. You can see that we can break this password as three parts.

LastName+DOB+sitename

In the last part we can choose any patterns like choosing only the letters from your name and many more...



Share:

Managing SSH keys!!!


It was all sudden. I managed to configure the ssh key and it shows you are not authorised to make any changes!!?? 

So what it is? Why this happens??

While trying to figure it out I understood that the ssh agent is confused with the identity file. You can see the permission is denied from the public key. The problem is caused after I added my Gitlab ssh key. Assuming the ssh-agent is confused with my Gitlab and Github ssh keys. When I try to push something, ssh checks for my identity file and  it doesn't know which file to pick!! So it might picked  Github ssh key for Gitlab server which caused the error.

Solution

The problem was identifying the identity file. So I made a config file in .ssh folder for a better understanding.

vi ~/.ssh/config

Host gitlab.com
	PreferredAuthentications publickey
	IdentityFile ~/.ssh/gitlab_key_location
Host github.com
	PreferredAuthentications publickey
	IdentityFile ~/.ssh/github_key_location


Now the ssh agent knows where to look for the private key for each hosts.


Share:

Wednesday, September 21, 2022

Template repository in github!!!


We know Github is a fun place to visualise your skills and contributions. With new updates Github is achieving our hearts day-by-day. There are many features in Github that only small number of folks are well known. One of them is Template Repository.

A template repository is nothing but a repository having a template of directories and files. It keeps the structure of your old repository like a new one.

Difference between a forked repository and a template repository

In a fork repository, you fork someone's repository and it is a kind of maintaining the old repository or contributing to it. All the commits and histories will be there when you fork some other repository. 
But in template repository you are forking it as a new repository. So you are starting from the first commit. No historical commits can be seen on template repository. You are just forking the directories and file.

Creating a Template repository

Creating a template repository is simple like forking. You can see an option "Use this template" in a repository which enabled template repository. Click on the button to create a template from the repository.

Note:- The owner of the repository needs to enable this feature. 




how to enable template repository options :-

As I already said, The owner of the repository needs to enable the template repository feature to use by others. You can enable this feature by going to settings and check on template repository.







Share: