Skip to content

Instantly share code, notes, and snippets.

@adyjs
adyjs / C-states.md
Created August 22, 2020 15:27 — forked from Brainiarc7/C-states.md
What are CPU "C-states" and how to disable them if needed?

To limit a CPU to a certain C-state, you can pass the processor.max_cstate=X option in the kernel line of /boot/grub/grub.conf.

Here we limit the system to only C-State 1:

    kernel /vmlinuz-2.6.18-371.1.2.el5 ... processor.max_cstate=1

On some systems, the kernel can override the BIOS setting, and the parameter intel_idle.max_cstate=0 may be required to ensure sleep states are not entered:

{
"root": "build/",
"clean_urls": false,
"routes": {
"/**": "index.html"
}
}
@adyjs
adyjs / multiple_ssh_setting.md
Created May 15, 2019 06:48 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@adyjs
adyjs / gist:96bb69f41ab1172bab5df06b3978b2d0
Last active May 23, 2019 11:55
git and github ssh key setting
steps for setting SSH key on Github and localhost
---------------------------------------------------------
1. generate SSH key on localhost ~/.ssh/ssh_key_folder
https://help.github.com/en/enterprise/2.16/user/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key
2. if there is more than 1 Github account ,
then need to setting "config" file in ~/.ssh folder