Skip to content

Instantly share code, notes, and snippets.

View andersgoransson's full-sized avatar

Anders Göransson andersgoransson

View GitHub Profile
@andersgoransson
andersgoransson / multiple_github.md
Created January 28, 2019 13:36
Setup multiple Github accounts

Personal notes on working towards two different Github-accounts on the same machine.

Prerequisite:

One default ssh-key already exists: ~/.ssh/id_rsa

Generate a named ssh-key:

ssh-keygen -t rsa -C "my@email.com" -f "id_rsa_my_user"

Copy the public ssh_key to the Github-account:

pbcopy < ~/.ssh/id_rsa_my_user.pub

@andersgoransson
andersgoransson / ExplicitJavaThread.java
Created November 23, 2012 02:31
Starting a Java Thread
public class MyThread extends Thread {
@Override
public void run() {
// Do background task
}
}