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/local/bin/bash | |
function disable_throttling() { | |
echo "Disabling CPU throttling" | |
for pid in `pgrep cputhrottle`; do | |
kill "$pid" | |
done | |
} | |
if [[ "$UID" -ne 0 ]]; then |
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
export ThrottledSlider | |
struct ThrottledSlider | |
range :: AbstractRange | |
default :: Number | |
throttle :: Number | |
show_value :: Bool | |
end | |
"""A Slider on the given `range`. |