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
| # List queue | |
| postqueue -p | |
| # Send queue | |
| postqueue -f | |
| # OR | |
| sendmail -q | |
| # Delete queue | |
| postsuper -d ALL |
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
| adduser selenium | |
| mkdir /usr/local/lib/selenium | |
| cd /usr/local/lib/selenium | |
| mv /home/centos/selenium-server-standalone-3.5.3.jar . | |
| ln -s selenium-server-standalone-3.5.3.jar selenium-server.jar | |
| cd /usr/lib/systemd/system | |
| vi selenium.service | |
| --- | |
| [Unit] |
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
| php bin/magento deploy:mode:set production | |
| php bin/magento setup:static-content:deploy --theme Talos/default --area frontend | |
| php bin/magento cache:flush | |
| --- | |
| SELECT * FROM `core_config_data` WHERE `path` LIKE '%dev/%' | |
| dev/template/minify_html |
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
| rsync -avz --progress /myfolder [email protected]:/home/centos/myfolder |
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 yum install epel-release | |
| sudo yum update | |
| # Java | |
| sudo yum install java-1.8.0-openjdk.x86_64 | |
| # Jenkins | |
| cd ~ | |
| sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo | |
| sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key |
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
| # Required Software | |
| yum -y install git figlet gcc-c++ nfs-utils awscli firewalld mariadb psmisc mailx bzip2 | |
| # PHP 5.6.32 | |
| yum -y update | |
| yum -y install epel-release | |
| wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
| wget https://centos7.iuscommunity.org/ius-release.rpm | |
| rpm -Uvh ius-release*.rpm | |
| yum -y update |
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
| # v. 20180110 | |
| TARGET=/var/www/B2C_America_PA/html | |
| TMPTARGET=$TARGET/../html-in-progress | |
| BACKUP=$TARGET/../html-backup | |
| USER=apache | |
| GROUP=apache | |
| echo "Temporary folder: $TMPTARGET" | |
| echo "Workspace folder: $WORKSPACE" |
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
| $ vi /etc/httpd/conf.modules.d/10-forensic.conf | |
| LoadModule log_forensic_module modules/mod_log_forensic.so | |
| LoadModule unique_id_module modules/mod_unique_id.so | |
| ForensicLog logs/forensic_log | |
| $ systemctl restart httpd | |
| $ tail -f /var/log/httpd/forensic_log |
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 | |
| # ---------------------------------------------------- | |
| # v. 20180308 | |
| TARGET=/var/www/html | |
| TMPTARGET=/var/www/codedeploy | |
| BACKUP=/var/www/html-backup | |
| USER=apache | |
| GROUP=apache | |
| # ---------------------------------------------------- |
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
| SET FOREIGN_KEY_CHECKS = 0; | |
| #Truncate order tables | |
| TRUNCATE TABLE `gift_message`; | |
| TRUNCATE TABLE `quote`; | |
| TRUNCATE TABLE `quote_address`; | |
| TRUNCATE TABLE `quote_address_item`; | |
| TRUNCATE TABLE `quote_id_mask`; | |
| TRUNCATE TABLE `quote_item`; | |
| TRUNCATE TABLE `quote_item_option`; |
OlderNewer