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