Contents:
Find zombie processes: #
ps axo stat,ppid,pid,comm | grep -w defunct
Measure memory #
Useful project: https://github.com/astrofrog/psrecord
psrecord \
--duration 30 \
--interval 2 \
--include-children \
--plot /tmp/plot.png \
<pid>
Load/unload environment variables based on directory #
https://github.com/direnv/direnv
brew install direnv
For integrating with zsh
, add in ~/.zshrc
:
eval "$(direnv hook zsh)"