This file contains 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 yum install clamav clamav-update clamav-scanner-systemd clamav-server-systemd -y | |
sudo sed -i -e "s/^Example/#Example/" /etc/freshclam.conf | |
sudo sed -i -e "s/^Example/#Example/" /etc/clamd.d/scan.conf | |
nano /etc/freshclam.conf | |
==> | |
HTTPProxyServer --- | |
HTTPProxyPort -- | |
HTTPProxyUsername -- | |
HTTPProxyPassword -- |
This file contains 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
yum install epel-release -y | |
yum install fail2ban nano -y | |
systemctl enable fail2ban | |
cat <<EOF > /etc/fail2ban/jail.local | |
[DEFAULT] | |
# Ban hosts for one hour: | |
bantime = 3600 | |
# Override /etc/fail2ban/jail.d/00-firewalld.conf: | |
banaction = iptables-multiport |
This file contains 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 yum -y groupinstall 'Development Tools' | |
sudo yum -y install epel-release | |
sudo yum -y install wget nano unzip | |
sudo yum install -y wget git unzip perl perl-devel perl-ExtUtils-Embed libxslt libxslt-devel libxml2 libxml2-devel gd gd-devel pcre-devel GeoIP GeoIP-devel | |
cd /usr/local/src | |
wget https://nginx.org/download/nginx-1.14.0.tar.gz | |
tar -xzvf nginx-1.14.0.tar.gz | |
wget https://ftp.pcre.org/pub/pcre/pcre-8.42.zip | |
unzip pcre-8.42.zip | |
wget https://www.zlib.net/zlib-1.2.11.tar.gz |
This file contains 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
cordova plugin rm org.apache.cordova.console --save | |
keytool -genkey -v -keystore name.keystore -alias name_alias -keyalg RSA -keysize 2048 -validity 10000 | |
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore path\name.keystore app-release-unsigned.apk name_alias | |
cordova build --release android | |
C:\Users\Hosein\AppData\Local\Android\Sdk\build-tools\30.0.2\zipalign.exe -v 4 "path\app-release-unsigned.apk" "path\app.apk" | |
This file contains 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
cd /opt | |
wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.5.tgz | |
tar -zxvf mongodb-linux-x86_64-4.0.5.gz | |
ln -s mongodb-linux-x86_64-4.0.5 mongodb | |
useradd mongod | |
mkdir -p /var/lib/mongo | |
chown -R mongod:mongod /opt/mongodb* | |
chown -R mongod: /var/lib/mongo | |
nano /etc/mongod.conf | |
----------------------------- |
This file contains 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
cd /etc/yum.repos.d/ | |
curl -O https://copr.fedorainfracloud.org/coprs/librehat/shadowsocks/repo/epel-7/librehat-shadowsocks-epel-7.repo | |
yum install -y shadowsocks-libev | |
nano /etc/shadowsocks-libev/config.json | |
{ | |
"server": "0.0.0.0", | |
"server_port": 3389, | |
"password": "login_password", | |
"method":"aes-256-cfb", |
This file contains 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
monitor.virtual_mmu = "hardware" | |
monitor.virtual_exec = "hardware" | |
vhv.enable = "TRUE" | |
monitor_control.restrict_backdoor = "true" |
This file contains 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
openssl x509 -noout -modulus -in CERTIFICATE.crt | openssl md5 | |
openssl req -noout -modulus -in CSR.csr | openssl md5 | |
openssl rsa -noout -modulus -in PRIVATEKEY.key | openssl md5 | |
#the result of all must be equal |
This file contains 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
setsebool -P httpd_can_network_connect 1 |
This file contains 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
tee /etc/yum.repos.d/MariaDB.repo<<EOF | |
[mariadb] | |
name = MariaDB | |
baseurl = http://yum.mariadb.org/10.4/centos8-amd64 | |
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB | |
gpgcheck=1 | |
EOF | |
sudo dnf install boost-program-options | |
sudo dnf install MariaDB-server MariaDB-client --disablerepo=AppStream |
NewerOlder