- Remove all the imagemagick in the system :
sudo apt remove imagemagick php7.4-imagick && sudo apt autoremove - Install latest version of imagemagick using
imeihttps://softcreatr.github.io/imei/ (Took 8 minutes in a 8 core system) - Install pecl and php7.4-dev
sudo apt install php7.4-dev php-pear - Install php imagick using pecl
sudo pecl install imagick - Enable module
sudo phpenmod imagick - Restart the server
sudo service php7.4-fpm restartorsudo service apache2 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
| new file src/Resources/config/packages/monolog.yaml | |
| ``` | |
| monolog: | |
| channels: ['my_plugin_log'] | |
| handlers: | |
| my_plugin_log: | |
| type: rotating_file | |
| path: '%kernel.logs_dir%/my_plugin_log%kernel.environment%.log' | |
| level: info |
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
| '/administration/static/img/empty-states/products-empty-state.svg' => '/administration/administration/static/img/empty-states/products-empty-state.svg' | |
| <sw-card-view slot="content"> => <template #content><sw-card-view> | |
| <sw-entity-single-select v-model= => <sw-entity-single-select v-model:value | |
| <sw-single-select v-model= => <sw-single-select v-model:value= |
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 | |
| declare(strict_types=1); | |
| namespace MyPlugin\Subscriber; | |
| use Shopware\Core\Content\Product\ProductEvents; | |
| use Shopware\Core\Framework\DataAbstractionLayer\Event\EntityWrittenEvent; | |
| use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
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 | |
| /** | |
| * Shopware 5 | |
| * Copyright (c) shopware AG | |
| * | |
| * According to our dual licensing model, this program can be used either | |
| * under the terms of the GNU Affero General Public License, version 3, | |
| * or under a proprietary license. | |
| * | |
| * The texts of the GNU Affero General Public License with an additional |
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
| If you want to access vb guest using ssh also have internet access from vb guest. | |
| Then you need to add two network cards to guest one NAT network and one HOST only adapter. |
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 | |
| export TERM=xterm-256color | |
| function tinkerwatch(){ | |
| clear; | |
| tail -n $(expr $(wc -l $1 | awk '{ print $1 }') - 1) $1 | php artisan tinker | |
| } | |
| tinkerwatch $1 |
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
| function fixpermissions(){ | |
| sudo chgrp -R www-data $1 | |
| sudo chown -R $(whoami):www-data $1 | |
| sudo chmod -R g+s $1 | |
| sudo chmod -R 775 $1 | |
| } | |
| add this to your .zshrc or bashrc | |
| use it like "fixperssmissions foldername" |
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
| follow this guide https://devanswers.co/run-multiple-php-versions-on-apache/ | |
| TLDR: | |
| sudo apt install php7.2 php7.2-fpm | |
| sudo a2enmod actions alias proxy_fcgi fcgid | |
| two ways to activate php version : | |
| 1) for using virtual host file method |
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
| Add this line "options snd-hda-intel model=alc233-asus" | |
| At end of file "/etc/modprobe.d/alsa-base.conf" |
NewerOlder