Skip to content

Instantly share code, notes, and snippets.

View m1st0's full-sized avatar

Maulik Mistry m1st0

View GitHub Profile
@m1st0
m1st0 / toggleHT.sh
Last active May 21, 2019 15:00 — forked from samueljon/toggleHT.sh
Disable / Enable HyperThreading cores on runtime - linux
#!/bin/bash
# Turn hyperthreading on or off.
HYPERTHREADING=1
RED="\033[0;31m"
GREEN="\033[0;32m"
YELLOW="\033[0;33m"
ENDCOLOR="\033[0m"
function toggleHyperThreading() {