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
echo "Removing Low Process Priority Throttling..." | |
sudo sysctl debug.lowpri_throttle_enabled=0 | |
echo "Renice backupd process" | |
pid=$(ps alxww | grep -i "backupd$" | awk '{print $2}') | |
ps alxww | grep -i "backupd$" | |
sudo renice -10 ${pid} | |
ps alxww | grep -i "backupd$" |
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
on run {input, parameters} | |
set termWinCnt to 0 | |
tell application "Terminal" | |
if it is running then | |
set termWinCnt to number of windows | |
if termWinCnt = 0 then | |
reopen | |
else | |
tell application "System Events" |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |