Skip to content

Instantly share code, notes, and snippets.

View niallmccullagh's full-sized avatar

Niall McCullagh niallmccullagh

View GitHub Profile
  graph TD;
      A-->B;
      A-->C;
      B-->D;
      C-->D;
#!/usr/bin/env bash
## PREREQUISITES CHECK
# `exists` for commands
exists() {
command -v "$1" >/dev/null 2>&1
}
# is AWS CLI installed?
@niallmccullagh
niallmccullagh / README.md
Created January 22, 2020 14:55
Clone Gitlab Projects

Clones a gitlab project/subprojects. If the script has already been used then it will pull the latest changes.

Handy to keep your local copy up to date.

Verifying my Blockstack ID is secured with the address 1ECGavB5Qu9fNWayM2UQRFbR4sGzPwtttd https://explorer.blockstack.org/address/1ECGavB5Qu9fNWayM2UQRFbR4sGzPwtttd
@niallmccullagh
niallmccullagh / fix-git-commit-email
Created February 7, 2017 17:37
A command to fix git commit with wrong email address
git filter-branch --env-filter '
WRONG_EMAIL="XXXX"
NEW_NAME="Niall McCullagh"
NEW_EMAIL="niallmccullagh@users.noreply.github.com"
if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ]
then
export GIT_COMMITTER_NAME="$NEW_NAME"
export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
fi

Keybase proof

I hereby claim:

  • I am niallmccullagh on github.
  • I am niall (https://keybase.io/niall) on keybase.
  • I have a public key whose fingerprint is 1BBE 9449 5291 3DBE E1BA 5E42 604E 03B9 CAD5 BAFA

To claim this, I am signing this object: