This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
python %~dp0git_for_intellij.py %* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
inner() { | |
local cmd="$@" | |
local REGEX="(^|log.showSignature=false )(add|rm|mv) " | |
if [[ $cmd =~ $REGEX ]]; then | |
echo 'Stopping IntelliJ from being a not well-behaved git client. See IDEA-194592, IDEA-63391, IDEA-176961, ...' >&2 | |
return 1 | |
fi | |
git "$@" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Example: | |
# ./find-ecr-image.sh foo/bar mytag | |
if [[ $# -lt 2 ]]; then | |
echo "Usage: $( basename $0 ) <repository-name> <image-tag>" | |
exit 1 | |
fi | |
IMAGE_META="$( aws ecr describe-images --repository-name=$1 --image-ids=imageTag=$2 2> /dev/null )" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#http://chris.beams.io/posts/git-commit/#seven-rules | |
cnt=0 | |
while IFS='' read -r line || [[ -n "$line" ]]; do | |
cnt=$((cnt+1)) | |
length=${#line} | |
if [ $cnt -eq 1 ]; then | |
# Checking if subject exceeds 50 characters | |
if [ $length -gt 50 ]; then | |
echo "Your subject line exceeds 50 characters." |