Skip to content

Instantly share code, notes, and snippets.

Avatar

Niall McCullagh niallmccullagh

View GitHub Profile
View aws-iam-rotate-keys.sh
#!/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 Jan 22, 2020
Clone Gitlab Projects
View README.md

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.

View gist:f622bda924b6e70e31de5b59853a698b
Verifying my Blockstack ID is secured with the address 1ECGavB5Qu9fNWayM2UQRFbR4sGzPwtttd https://explorer.blockstack.org/address/1ECGavB5Qu9fNWayM2UQRFbR4sGzPwtttd
@niallmccullagh
niallmccullagh / fix-git-commit-email
Created Feb 7, 2017
A command to fix git commit with wrong email address
View fix-git-commit-email
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
View keybase.md

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: