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
# Lists ENV variable that not exists in the codebase. | |
# Helps to find potentially unused ENV variables on Heroku. | |
# cd into your-app-repo | |
heroku config --app your-app-name | grep -E -oh "^(.+): " | rev | cut -c 3- | rev | uniq | sort > your-app.env | |
cat your-app.env | xargs -P 0 -I % grep --include=*.{rb,yml,yaml,erb} -rohm1 . -e '%' | uniq | sort > repo.env | |
diff -y --suppress-common-lines your-app.env repo.env | grep -v -E 'HEROKU_|JAVA_HOME' |
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
Ubuntu 18.04.4 LTS, ruby 2.6.5p114: | |
{"EXIT"=>0, "HUP"=>1, "INT"=>2, "QUIT"=>3, "ILL"=>4, "TRAP"=>5, "ABRT"=>6, "IOT"=>6, "FPE"=>8, "KILL"=>9, "BUS"=>7, "SEGV"=>11, "SYS"=>31, "PIPE"=>13, "ALRM"=>14, "TERM"=>15, "URG"=>23, "STOP"=>19, "TSTP"=>20, "CONT"=>18, "CHLD"=>17, "CLD"=>17, "TTIN"=>21, "TTOU"=>22, "IO"=>29, "XCPU"=>24, "XFSZ"=>25, "VTALRM"=>26, "PROF"=>27, "WINCH"=>28, "USR1"=>10, "USR2"=>12, "PWR"=>30, "POLL"=>29} | |
Windows 10, ruby 2.7.0p0: | |
{"EXIT"=>0, "INT"=>2, "ILL"=>4, "ABRT"=>22, "FPE"=>8, "KILL"=>9, "SEGV"=>11, "TERM"=>15} |
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
REASONS = { | |
person_not_relevant: "Person Not Relevant", | |
dont_kill: "Not Dead Yet", | |
ignore_account: "Ignore Account", | |
try_tomorrow: "Try Tomorrow", | |
try_next_week: "Try Next Week", | |
try_next_month: "Try Next Month", | |
try_in_3_months: "Try In 3 Months" | |
} |
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
Day job: | |
Favorite Ruby project: | |
Open Source contributions: | |
How do you use GitHub: |