Skip to content

Instantly share code, notes, and snippets.

View atishayjain708's full-sized avatar
💭
Looking for projects to work on

Atishay Jain atishayjain708

💭
Looking for projects to work on
View GitHub Profile
@atishayjain708
atishayjain708 / INSTRUCTIONS.md
Created January 10, 2021 20:36
Setting up Python on a new machine using pyenv

Install pyenv

Ref: https://www.liquidweb.com/kb/how-to-install-pyenv-on-ubuntu-18-04/

Step #1: Install pyenv and dependencies using:

sudo apt-get update; sudo apt-get install --no-install-recommends make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev

Step #2: Clone the Repository To install the latest version of pyenv and provide a straightforward method for updating it, run the following command to pull it down from GitHub:

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.