Skip to content

Instantly share code, notes, and snippets.

@dianabotean
dianabotean / customer_entity_anonymize.sql
Created June 19, 2020 12:42
Anonymize customer email address
update customer_entity set email = (select concat(left(uuid(), 8), '@fakeaddress.com'));
@dianabotean
dianabotean / env.php
Created February 11, 2021 17:38
move open source queues to rabbit
[
(...)
'queue' => [
'amqp' => [
'host' => '<rabbitmq_host>',
'port' => '<rabbitmq_port>',
'user' => '<rabbitmq_user>',
'password' => '<rabbitmq_pass>',
'virtualhost' => '/',
'ssl' => false
@dianabotean
dianabotean / default.conf
Created August 12, 2021 08:37
setup multi website m2
#$cat /var/www/.docker/nginx/conf/conf.d/default.conf
upstream fastcgi_backend {
server phpfpm-project:9000;
}
map $http_host $WEBSITE_CODE {
store.de.local base;
store.at.local store_de_at;
store.fr.local store_fr_fr;
}