This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Switch to root account | |
2. Navigate to /tmp | |
3. Download source by Running: wget https://dl.google.com/go/go1.12.7.linux-amd64.tar.gz | |
4. Extract files to /usr/local (update version number if needed) tar -C /usr/local -xzf go1.12.7.linux-amd64.tar.gz | |
5. edit /etc/.profile and add export PATH=$PATH:/usr/local/go/bin | |
6. source /etc/.profile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -i | |
yum groupinstall -y "development tools" | |
yum install -y \ | |
libffi-devel \ | |
zlib-devel \ | |
bzip2-devel \ | |
openssl-devel \ | |
ncurses-devel \ | |
sqlite-devel \ | |
readline-devel \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###### Docker Install ###### | |
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
DEST_DIR=$PWD/backup/daily/database/ | |
COMPRESSED_DIR=$PWD/backup/daily/database-compressed/ | |
OSSPTH=oss://<OSS_BUCKET> | |
DATABASE_NAME=<Database_Name> | |
MYSQL_USER=<Database_User> | |
MYSQL_PASS=<Database_Password> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Go to the WordPress installation directory and apply following commands | |
1. To get list of users | |
wp users list | |
2. To get list of user login | |
wp users list --field=user_login | |
3. Update user password | |
wp user update <User_ID> --user_pass='Suer_Secure_Password' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo add-apt-repository "deb https://apt.postgresql.org/pub/repos/apt xenial-pgdg main" | |
sudo wget --quiet -O - https://postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install -y postgresql-9.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_expires.c> | |
ExpiresActive on | |
<FilesMatch "\.(gif|jpeg|jpg|png|ico|js|css|swf|svg)$"> | |
ExpiresDefault "access plus 365 days" | |
</FilesMatch> | |
</IfModule> | |
<IfModule mod_deflate.c> | |
# Compress HTML, CSS, JavaScript, Text, XML und fonts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo add-apt-repository "deb https://apt.postgresql.org/pub/repos/apt zesty-pgdg main" | |
sudo wget --quiet -O - https://postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install -y postgresql-9.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Sites: | |
https://gtmetrix.com/ | |
https://developers.google.com/speed/pagespeed/insights/ | |
### Plugins | |
https://wordpress.org/plugins/query-monitor/ | |
https://wordpress.org/plugins/autoptimize/ | |
https://wordpress.org/plugins/wp-super-cache/ | |
https://wordpress.org/plugins/ewww-image-optimizer/ | |
https://wordpress.org/plugins/jetpack/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Install Admin CSS MU and paste the following CSS code */ | |
.update-nag, .updated, .error, .is-dismissible, .notice { | |
display: none; | |
} |