Skip to content

Instantly share code, notes, and snippets.

@ncdulo
ncdulo / turbo-boost.sh
Created February 11, 2020 21:37
Enable or disable Intel Turbo-Boost via MSR
#!/usr/bin/env bash
# Enable or disable Intel Turbo-Boost
# Requires msr kernel module to be built and loaded
# Will ask for root privileges when the time comes
# Copied, with love, from:
# https://notepad2.blogspot.com/2014/11/a-script-to-turn-off-intel-cpu-turbo.html
if [[ -z $(which rdmsr) ]]; then
echo "msr-tools is not installed. Run 'sudo apt-get install msr-tools' to install it." >&2
@natelandau
natelandau / .bash_profile
Last active November 9, 2025 04:02
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management