Skip to content

Instantly share code, notes, and snippets.

View TheOtherDave's full-sized avatar

Dave Sweeris TheOtherDave

  • SF Bay Area
View GitHub Profile
@TheOtherDave
TheOtherDave / egos_throttle.sh
Created June 16, 2018 05:30 — forked from golimpio/egos_throttle.sh
Run cputhrottle for a list of applications in order to limit their CPU usage.
#!/bin/bash
# Run cputhrottle for a list of applications in order to limit their CPU usage.
# This script needs `pidof` and `cputhrottle` installed, which can be installed from homebrew.
# NOTE: This script was tested on MacOS only.
if [[ $EUID > 0 ]]; then
echo "Please run this script as root/sudo"
exit 1
fi