For those who don't know how to run the script:
1. Save it in some text editor (vim/nano/some gui editor) as "hugepages.sh" (for example)
2. Ensure that you have terminal in the same direction as the script (use cd to enter directories and cd .. to go back)
3. Run command "chmod +x hugepages.sh"
4. run "sudo ./hugepages.sh enable" to enable hugepages and "sudo ./hugepages.sh disable" to disable them