Skip to content

Instantly share code, notes, and snippets.

View nicojust's full-sized avatar
💭
Ten Billion Percent

Nico Just nicojust

💭
Ten Billion Percent
View GitHub Profile
@nicojust
nicojust / prepare-commit-msg
Created May 2, 2020 00:17
Git Commit Hooks
#!/bin/bash
#
# An example hook script to prepare the commit log message.
# Called by "git commit" with the name of the file that has the
# commit message, followed by the description of the commit
# message's source. The hook's purpose is to edit the commit
# message file. If the hook fails with a non-zero status,
# the commit is aborted.
#
# To enable this hook, rename this file to "prepare-commit-msg".
@nicojust
nicojust / regenerate_mfa_profile.sh
Last active February 19, 2020 16:19
AWS - regenerate_mfa_profile.sh
#!/usr/bin/env bash
set -eo pipefail
# Required arguments
TOKEN_CODE=""
USER_NAME=""
DEFAULT_PROFILE=""
# Default Values