Skip to content

Instantly share code, notes, and snippets.

@samloh84
Last active June 20, 2022 06:11
Show Gist options
  • Save samloh84/cd767351000da2b114b15c9dbf756ea7 to your computer and use it in GitHub Desktop.
Save samloh84/cd767351000da2b114b15c9dbf756ea7 to your computer and use it in GitHub Desktop.
dotfiles2
#!/usr/bin/bash
set -Eeuxo pipefail
git config --global user.name "Samuel Loh"
git config --global user.email "samuel.loh.yk@gmail.com"
git config user.email "samuel_loh@tech.gov.sg"
git config --global credential.helper osxkeychain
git config --add http.https://gitlab-in.ship.gov.sg/.extraheader "cf-access-token: $(cloudflared access token -app=https://gitlab-in.ship.gov.sg)"
#!/bin/bash
cloudflared access login https://gitlab-in.ship.gov.sg
git config --global --unset-all http.https://gitlab-in.ship.gov.sg/.extraheader
git config --unset-all http.https://gitlab-in.ship.gov.sg/.extraheader
git config --add http.https://gitlab-in.ship.gov.sg/.extraheader "cf-access-token: $(cloudflared access token -app=https://gitlab-in.ship.gov.sg)"
#!/usr/bin/bash
set -Eeuxo pipefail
npm config --global set init-author-email "samuel.loh.yk@gmail.com"
npm config --global set init-author-name "Samuel Loh"
npm config --global set init-author-url "https://github.com/samloh84"
npm config --global set init-license "MIT"
npm config set init-author-email "samuel_loh@tech.gov.sg"
npm config set init-author-url "https://gitlab-in.ship.gov.sg/samuel_loh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment