Skip to content

Instantly share code, notes, and snippets.

👨‍💻
Usually responsive. Always ready to code.

Mayank Kumar mayankk2308

👨‍💻
Usually responsive. Always ready to code.
Block or report user

Report or block mayankk2308

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mayankk2308
mayankk2308 / boost-low-pri-macOS.sh
Created Jul 17, 2018
Boost Low-Priority Tasks on macOS
View boost-low-pri-macOS.sh
# Useful for improving Time Machine backup prep. times, Mac App Store install speeds, etc.
sudo sysctl debug.lowpri_throttle_enabled=0
# To restore defaults
sudo sysctl debug.lowpri_throttle_enabled=1
@mayankk2308
mayankk2308 / disable-amd-gpu.sh
Last active Jul 5, 2019
Disable AMD GPU acceleration on macOS
View disable-amd-gpu.sh
# This can be useful to force the system to use only the integrated GPU at all times.
# This only applies to modern AMD GPUs (using the AMDRadeon4000 series kernel extension or later).
# Set mux to integrated Intel GPU
sudo nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00
# Option #1: Completely disable automatic graphics switching and any other GPUs
sudo nvram boot-args="agc=-1"
# Option #2: Disable just the AMD GPU framebuffer
You can’t perform that action at this time.