I hereby claim:
- I am bbaja42 on github.
- I am barisa (https://keybase.io/barisa) on keybase.
- I have a public key whose fingerprint is BF03 A828 C659 9DF5 8A7E EBB1 D3B3 4925 8975 31B0
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
alias gbda='git branch --merged | command grep -vE "^(\*|\s*master\s*$)" | command xargs -n 1 git branch -d' | |
alias donepr='gcm && git pull && gbda' |
Style/Encoding: | |
Enabled: false | |
Style/MutableConstant: | |
Enabled: false | |
Metrics/LineLength: | |
Max: 160 | |
Rails: |
#!/bin/bash | |
protected_branch='master' | |
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
if [ $protected_branch = $current_branch ] | |
then | |
read -p "You're about to push master, is that what you intended? [y|n] " -n 1 -r < /dev/tty | |
echo | |
if echo $REPLY | grep -E '^[Yy]$' > /dev/null |
set_trace_func proc { |event, file, line, id, binding, classname| | |
if event == "call" && !file.include?('pry') | |
STDERR.puts "look_for_bug=true CALL #{event} #{file} #{line} #{id} #{classname} " | |
end | |
} |