# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
To set the scaling_governor to “performance” mode for each CPU, run:
# echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
# echo performance > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
# echo performance > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
…
To verify configuration, run:
# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governorperformance
performance
performance
performance
…
To view and compare current frequency to the min and max scaling, run:
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
3300000
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
1200000
# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
3210156
Share your thoughts
adduser –home /var/www/WEBHOMEDIR/ –disabled-login –disabled-password –no-create-home USER
Share your thoughts
If you have problem like “windows can’t communicate with the device or resource (primary DNS server)”
Try to disable Hyper-V switch from all interfaces!
Share your thoughts
control-W (search)
control-R (replace)
hit space 8 times, then hit enter
alt-shift-V (verbatim input)
hit the tab key, hit enter
Share your thoughts
do-release-upgrade
Edit /etc/apt/sources.list.d/gitlab_gitlab-ce.list
deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ xenial main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ xenial main
gitlab-ctl reconfigure
apt-get update
apt-get upgrade
gitlab-ctl restart
Share your thoughts
NodeJS :
V8
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
V10
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
PostgreSQL :
Create the file /etc/apt/sources.list.d/pgdg.list, and add a line for the repository
deb http://apt.postgresql.org/pub/repos/apt/ YOUR_UBUNTU_VERSION_HERE-pgdg main
Import the repository signing key, and update the package lists
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \
sudo apt-key add -
sudo apt-get update
su – postgres
>
CREATE USER $LOGIN_HERE$ WITH password ‘$PASSWORD_HERE$’;
ALTER ROLE $LOGIN_HERE$ WITH SUPERUSER CREATEDB LOGIN;
CREATE DATABASE $DATABASE_HERE$ WITH OWNER $LOGIN_HERE$;
Share your thoughts