Skip to content

Instantly share code, notes, and snippets.

View alexsapran's full-sized avatar

Alexandros Sapranidis alexsapran

View GitHub Profile

Keybase proof

I hereby claim:

  • I am alexsapran on github.
  • I am asapranidis (https://keybase.io/asapranidis) on keybase.
  • I have a public key whose fingerprint is 3AAC 2B10 5DB5 7648 E14D B40E 8521 E9A2 6870 5B61

To claim this, I am signing this object:

@alexsapran
alexsapran / aws.zsh
Last active October 12, 2018 05:02
AWS CLI bash wrapper dot file
_warning(){
echo -e "\e[31m${@}\e[0m"
}
_info(){
echo -e $@
}
_success(){
echo -e "\e[32m${@}\e[0m"
}
@alexsapran
alexsapran / pre-commit
Last active December 22, 2016 11:08
Terraform client git hook
# Redirect output to stderr.
exec 1>&2
# enable user input
exec < /dev/tty
# check if there is a change in the tfstate file
TFSTATE=`git diff --cached --name-status | awk '$1 != "R" { print $2 }' |grep tfstate |wc -l`
if [ $TFSTATE -ne 0 ]
then