Skip to content

Instantly share code, notes, and snippets.

View mohqarmout's full-sized avatar
🏠
Working from home

Mohammed Qarmout mohqarmout

🏠
Working from home
View GitHub Profile
@gregfenton
gregfenton / eas_sync_customer_config.bash
Last active January 4, 2022 20:13
a shell script to clone a git repo into the current EAS build container
#!/bin/bash
set -e # exit when any command fails
function LOG() {
printf 'LOG: %s %s\n' "$(date '+%b-%d %T')" "${1}"
}
function CLONE_GITHUB_REPO() {
#
# EAS_SCRT_GITHUB_CONFIG_REPOS_TOKEN is an account-level Secret stored in our Expo account's Settings
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active June 30, 2024 07:40
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.