Skip to content

Instantly share code, notes, and snippets.

View seta-phucpham's full-sized avatar

seta-phucpham

View GitHub Profile
@NickMcSweeney
NickMcSweeney / postgresql_plus_arch-linux.md
Last active June 9, 2024 16:56
Getting postgresql running on Arch Linux

Setup Postgresql

run postgresql with systemctl

Install postgres

latest

sudo pacman -S postgresql

specific version

find version & build from source

@cdiggins
cdiggins / react-best-practices.md
Created January 25, 2018 16:20
React Best Practices
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active June 9, 2024 08:18
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.