Skip to content

Instantly share code, notes, and snippets.

View roguepullrequest's full-sized avatar
🕳️

roguepullrequest

🕳️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am roguepullrequest on github.
  • I am zeroxfiftyone (https://keybase.io/zeroxfiftyone) on keybase.
  • I have a public key ASClIpHE3H5u2qXQ6nkS-0tZ6qBvFVvAmefni8eRyJPXVgo

To claim this, I am signing this object:

@roguepullrequest
roguepullrequest / switch-turbo.sh
Created March 13, 2018 18:10 — forked from aelveborn/switch-turbo.sh
Bash script to enable / disable turbo on the CPU in Linux. Change permissions: sudo chmod a+x switch-turbo.sh Run the script: sudo ./switch-turbo.sh
#!/bin/bash
status=$(cat /sys/devices/system/cpu/intel_pstate/no_turbo)
if [ $status = 0 ]; then
echo "Switching CPU-turbo: OFF"
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
else
echo "Switching CPU-turbo: ON"
echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo