Skip to content

Useful snippets for developers

Greg Elin edited this page Sep 1, 2019 · 3 revisions

Handy grep commands for finding environmental variable use (from issue #607):

# get each top-level key, by itself, no dupes
grep -rP -ho "environment(\.get\(|\[)(['\"])\K.*?(?=\2)" siteapp/ | sort | uniq
# show key in original context
grep -rnP -o "environment(\.get\(|\[)(['\"])\K.*?(?=\2)" siteapp/

Slack's notification flow:

screen shot 2017-03-11 at 5 59 46 am

see: https://twitter.com/mathowie/status/837735473745289218