Skip to content

Instantly share code, notes, and snippets.

View AlizaminJ's full-sized avatar
💭
Coding

Alizamin Jafarli AlizaminJ

💭
Coding
View GitHub Profile

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.

Keybase proof

I hereby claim:

  • I am alizaminj on github.
  • I am alizaminj (https://keybase.io/alizaminj) on keybase.
  • I have a public key ASC3pg28fJ_WP9Jd7nTVAYmTnCpS9ThA7gvfHJ5wdQNDxwo

To claim this, I am signing this object:

@AlizaminJ
AlizaminJ / 2019-https-localhost.md
Created January 16, 2020 08:08 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@AlizaminJ
AlizaminJ / mongodb_shell_commands.md
Created November 18, 2019 21:08 — forked from michaeltreat/mongodb_shell_commands.md
Quick Cheat Sheet for Mongo DB Shell commands.

MongoDB Shell Commands Cheat Sheet.

This is a Cheat Sheet for interacting with the Mongo Shell ( mongo on your command line). This is for MongoDB Community Edition.

Preface:

Mongo Manual can help you with getting started using the Shell.

FAQ for MongoDB Fundamentals and other FAQs can be found in the side-bar after visiting that link.

@AlizaminJ
AlizaminJ / PY0101EN-1-1-Types.ipynb
Created January 26, 2019 21:31
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AlizaminJ
AlizaminJ / From Problem to Approach
Created January 22, 2019 20:32
Created on Cognitive Class Labs
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<a href=\"https://cognitiveclass.ai\"><img src = \"https://ibm.box.com/shared/static/9gegpsmnsoo25ikkbl4qzlvlyjbgxs5x.png\" width = 400> </a>\n",
"\n",
"<h1 align=center><font size = 5>From Problem to Approach</font></h1>"
]
# Go to home directory
cd ~
# You can change what anaconda version you want at
# https://repo.continuum.io/archive/
wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh
bash Anaconda2-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
rm Anaconda2-4.2.0-Linux-x86_64.sh
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc