This file contains 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
#!/usr/bin/env bash | |
# Microsoft Edge on macOS sometimes will get stuck using 100% CPU endlessly, requiring a relaunch to stop. | |
# See issue at https://techcommunity.microsoft.com/t5/discussions/edge-browser-100-cpu-requires-force-quit-macos-mojave-and-v91-0/m-p/2441462/highlight/true#M48074 | |
# | |
# This script will display a macOS notification if Microsoft Edge has been using more | |
# than 90% CPU continuously for more than 10 minutes. It only checks the main | |
# Microsoft Edge process, not the Microsoft Edge Helper processes. | |
# | |
# Save it to ~/bin/cpu-threshold-alert-microsoft-edge |
This file contains 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
kill -9 <sshfs pid> | |
fusermount -u <mountpoint> |