These set of scripts are for Magento 2. For Magento 1, see this Gist.
#!/bin/bash | |
PREFIX="MY CLIENT -" | |
REPO_PATH='/home/ubuntu/server/client' | |
ACCEPTABLE_BRANCH="DEV" | |
COMPOSE_FILE="docker-compose.production.yml" | |
CLIENT_IMAGE="127.0.0.1:5000/mpc_nginx_client" |
Se você ainda não aprendeu Git, um bom lugar para começar é meu Micro Tutorial de Git. Para complementar, existem algumas dicas úteis para usar no dia-a-dia que vou explicar agora. Mesmo assim, Git é um mundo rico e complexo, existem infinitas possibilidades e você nunca vai se cansar de aprender coisas novas com ele. Recomendo também acompanhar o site GitReady para continuar aprendendo truques novos.
Para começar, vamos criar um novo repositório para exemplo:
rails teste
Mais um pequeno tutorial para os amantes de Linux com a qualidade MeuPinguim. Nossa especialidade é facilitar ao máximo o uso de comandos no Linux. Portanto, com apenas um comando você pode estar testando seu microfone. Mas aí também tem um pequeno detalhe: o uso de um fone de ouvido. Depois eu te explico. Vamos nessa!!
Testando seu microfone Pegue um fone de ouvido qualquer e plugue no seu computador ou laptop para testar o microfone. “Mas Tio Pinguim, por que tem que ter fone de ouvido?”. Caro noob boy, porque com o fone de ouvido você evita a microfonia.
- Make sure you test clearing this data in a non-production environment first.
- Always make backups before you lose data forever.
- Make sure you're
truncate
ing, notdrop
ing. - Probably a good idea to reindex everything via shell after mass deleting records
To expand on Jim's answer, Magento Support doesn't need the contents of these tables when they ask for a copy of your DB, so you could consider them non-essential.
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
Alter Base Url in Terminal | |
php bin/magento setup:store-config:set --base-url="http://localhost:8080/" | |
Alter Base Security Url in Terminal | |
php bin/magento setup:store-config:set --base-url-secure="https://localhost:8080/" | |
After actions crear a cache | |
php bin/magento cache:flush | |
Display the Admin URI |
Magento 2 Debugging Tricks - setData, DataObject.php & xDebug by Matheus Gontijo | |
Video: https://www.youtube.com/watch?v=eo8N7e9eEPI | |
----------------------------------------------- | |
What is "stripos"? | |
<?php | |
// https://www.php.net/stripos |
Magento 1 | |
SET @passwd='newpassord', @salt='5k'; | |
For admin | |
update admin_user SET password = CONCAT(MD5(CONCAT(@salt , @passwd)), CONCAT(":", @salt )) where email = '[email protected]'; | |
For customer | |
update customer_entity_varchar set value = CONCAT(MD5(CONCAT(@salt , @passwd)), CONCAT(":", @salt )) | |
where entity_id IN (select entity_id from customer_entity where email = '[email protected]') | |
and attribute_id in ( select attribute_id from eav_attribute where entity_type_id = 1 and attribute_code = 'password_code' ) | |
and entity_type_id = 1; |