- Remove all the imagemagick in the system :
sudo apt remove imagemagick php7.4-imagick && sudo apt autoremove
- Install latest version of imagemagick using
imei
https://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 restart
orsudo service apache2 restart
This file contains 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 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 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 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 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 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 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" |
This file contains 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 @sourceCustomerGroupKey = 'EK'; | |
SET @destinationPriceGroupKey = 'ATK'; | |
UPDATE s_articles_prices DESTINATION_PRICES | |
INNER JOIN s_articles_prices AS SOURCE_PRICES | |
ON SOURCE_PRICES.`pricegroup` = @sourceCustomerGroupKey AND | |
SOURCE_PRICES.`from` = DESTINATION_PRICES.`from` AND | |
SOURCE_PRICES.`to` = DESTINATION_PRICES.`to` AND | |
SOURCE_PRICES.`articleID` = DESTINATION_PRICES.`articleID` AND | |
SOURCE_PRICES.`articledetailsID` = DESTINATION_PRICES.`articledetailsID` AND |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import socket | |
import struct | |
import sys | |
import os | |
import time | |
# see com.intellij.idea.SocketLock for the server side of this interface |
NewerOlder