Skip to content

Instantly share code, notes, and snippets.

View afnecors's full-sized avatar
💭

Francesco Serra afnecors

💭
View GitHub Profile
@alexbrollo
alexbrollo / jp2todjvu.py
Last active August 29, 2022 17:11
Getting high quality djvu from IA jp2 images
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os, shutil, urlparse, urllib
import zipfile
import argparse
from PIL import Image
from internetarchive import download
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active May 19, 2024 07:15
Using multiple github accounts with ssh keys

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.