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
git diff $1 --stat --name-only --diff-filter=ACMR -- *.php |
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
[user] | |
name = Mykola Gurov | |
[apply] | |
ignorewhitespace = change | |
[alias] | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all --date-order | |
gol = log --graph --oneline | |
# new = !git init . && git commit --allow-empty -m 'initial' | |
#via https://answers.atlassian.com/questions/179848/local-checkout-of-a-pull-request-in-stash | |
# prstash = "!f() { git fetch $1 refs/pull-requests/$2/from:$3; } ; f" |
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
alias confluize='sed -E "s/([-\[\{\*\|])/\\\\\1/g" | sed "s/:)/\\\:)/"' |
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
export PS1="\w$ " | |
if [ $ITERM_SESSION_ID ]; then | |
export PROMPT_COMMAND='echo -ne "\033];${PWD#/Users/mgu}\007";'; | |
fi | |
alias json="python -mjson.tool" | |
alias xmlcat="xmllint --format -" | |
alias grep="grep --color" |
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 -e | |
#depends on xml starlet, brew install xmlstarlet | |
if [ $1 ]; then | |
BASE_BRANCH=$1 | |
else | |
BASE_BRANCH=origin/master | |
fi | |
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 | |
for dir in */; do | |
echo $dir | |
cd $dir | |
($@) | |
cd .. | |
done |
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 -e | |
nohup ./cmd.sh & | |
NOHUP_PID=$! | |
echo $NOHUP_PID | tee nohup.pid |
NewerOlder