Configuring a github access token STEP 1 : Install xclip for copying the token to clipboard( you can skip this if you know how to copy it manually) sudo apt update sudo apt install xclip STEP 2: Generate an ssh key, in your terminal type ssh-keygen accept defaults as the token is being generated, finally you will be given the location of the private key and public key(ends with .pub) generated. STEP 3: copy the public key to clipboard xclip -selection clipboard < /home/your-user/.ssh/id_rsa.pub STEP 4: Go to github.com->settings-> SSH and GPG then generate new ssh key and paste your copied key. STEP 5: (OPTIONAL) write a custom script to simplify cloning using your key. in the terminal type: touch clone; inside this file put the following NB clone can be any name #!/bin/sh git clone $1 --config core.sshCommand="ssh -i ~/.ssh/id_rsa" also in the above text replace id_rsa(private k...
Popular posts from this blog
7 Tips To Write Clean And Better Code in 2020 Software engineering is not just all about learning a language and building some software. As a software engineer or software developer, you are expected to write good software . So the question is what makes good software?. Good software can be judged by reading some piece of code written in the project. If the code is easy to understand and easy to change then definitely it’s a good software and developers love to work on that. It’s a common thing in development that nobody wants to continue a project with horrible or messy code (It becomes a nightmare for sometimes…). Sometimes developers avoid writing clean code due to deadline pressure. They rush to go faster but what happens actually is they end up with going slower. It creates more bugs which they need to fix later going back on the same piece of code. This process takes much more time than the amount of time spent on writing the code. A s...
Best Way To Start Learning Python – A Complete Roadmap Python… The world’s fastest-growing and most popular programming language not just amongst software engineers but also amongst mathematicians, data analysts, scientists, accountants, network engineers, and even kids! because it’s a very beginner-friendly programming language. People from different disciplines use Python for a variety of different tasks, such as data analysis and visualization, artificial intelligence and Machine Learning , automation, etc. You can write Python script to automate a lot of boring tasks such as copying files and folders, renaming them, uploading them to a server. So Python is not just used by software developers but also it is used by other professionals to automate their tasks and make their life easier. Python is a multi-purpose language, you can use Python to build web apps, mobile apps, and desktop...
Comments
Post a Comment