Skip to content

Instantly share code, notes, and snippets.

View garyhtou's full-sized avatar
🪄
merge wand™️

Gary Tou garyhtou

🪄
merge wand™️
View GitHub Profile
@garyhtou
garyhtou / README.md
Created September 8, 2020 18:04
Initialize Google service accounts without the .json file, instead only use env GOOGLE_APPLICATION_CREDENTIALS

Initialize Google service accounts without the .json file, instead only use env

Getting a secret .json file through your workflow, piplines, and onto your servers is a pretty complicated task. To simpilify the process, you can store the contents of the secret.json in env instead.

Written in the content of firebase-admin for Node.

  1. Make the contents of your GOOGLE_APPLICATION_CREDENTIALS file one line and add it to env as GOOGLE_APPLICATION_CREDENTIALS.

{"type": "service_account",

@garyhtou
garyhtou / README.md
Created May 6, 2020 03:37
Auto deploy repo through github webhook

Test-Auto-Deploy

Auto deploy repo through github webhook

Open Git Bash.

Create a fresh, bare clone of your repository:

git clone --bare https://github.com/user/repo.git
cd repo.git

Then, see which authors have committed to your repo

git shortlog -e -s -n