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, Magento 2 admin this webpage has a redirect loop | |
SELECT * FROM `core_config_data` WHERE `path` LIKE '%web/cookie/cookie_domain%' | |
Change value to domain |
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
import java.util.Arrays; | |
public class Sorting { | |
public int[] countingSortOld(int arrs[], int k) { | |
int C[] = new int[k]; | |
for (int i = 0; i < arrs.length; i++) { | |
C[arrs[i]]++; |
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 magento 2 with command line | |
php bin/magento setup:install \ | |
--backend-frontname=admin \ | |
--db-host=localhost \ | |
--db-name=magento \ | |
--db-user=magento \ | |
--db-password=magento \ | |
--base-url=http://magento2.docker/ \ | |
--admin-firstname=Admin \ |
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 sendmail | |
sudo apt install sendmail | |
sudo service sendmail restart | |
sudo service php7.2-fpm restart | |
# Send email by command | |
echo "test message" | sendmail -v [email protected] |
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
# In server | |
sudo apt install openssh-server | |
sudo vim /etc/ssh/sshd_config | |
- Edit sshd_config change to | |
PasswordAuthentication no | |
sudo service ssh restart |
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
# Config custom rules | |
vendor/bin/phpcs --config-set installed_paths vendor/magento/magento-coding-standard/Magento2/ |
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, Make sure local workstation install JDK >= 1.8 | |
2, Dowload Ant: | |
wget https://www-eu.apache.org/dist//ant/binaries/apache-ant-${VER}-bin.tar.gz | |
3, sudo tar -xvf apache-ant-${VER}-bin.tar.gz -C /usr/local | |
4, | |
sudo ln -s /usr/local/apache-ant-${VER}/ /usr/local/ant | |
sudo vim /etc/profile.d/ant.sh | |
export ANT_HOME=/usr/local/ant | |
export PATH=${PATH}:${ANT_HOME}/bin | |
source /etc/profile.d/ant.sh |
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
pipeline { | |
agent any | |
stages { | |
stage('Prepare') { | |
steps { | |
sh 'composer install' | |
sh 'rm -rf build/api' | |
sh 'rm -rf build/coverage' | |
sh 'rm -rf build/logs' |
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
export JAVA_HOME=/opt/java/openjdk | |
export PATH=$PATH:$JAVA_HOME/bin | |
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 docker volume create -d local-persist -o mountpoint=/var/www/rav-rp --name=mag-rav-stg |