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
ubuntu-drivers list; | |
sudo ubuntu-drivers install; | |
# install a specific version from the list: | |
sudo ubuntu-drivers install nvidia:535; |
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
## https://forum.shopware.com/t/bild-als-cover-setzen-bei-mehrfachaenderung/96122/14 | |
## set cover image | |
UPDATE | |
product p | |
LEFT JOIN product_media pm ON (p.id = pm.product_id AND p.version_id = pm.product_version_id AND pm.position = ( | |
SELECT | |
min(position) | |
FROM | |
product_media | |
WHERE |
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
ddev config --project-type=php --docroot=htdocs --create-docroot --web-working-dir=/var/www/html/ \ | |
--database=mysql:8.0 --php-version=8.2 --nodejs-version=20 --webserver-type=apache-fpm \ | |
--web-environment-add="DATABASE_URL=mysql://db:db@db:3306/db,MAILER_DSN=smtp://localhost:1025?encryption=&auth_mode=,APP_URL=\${DDEV_PRIMARY_URL},APP_DEBUG=1,APP_ENV=dev" |
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
let postData = new FormData(form); | |
postData.keys().forEach( | |
(key) => { | |
console.log(key); | |
console.log(postData.get(key)); | |
} | |
); |
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
AuthType Basic | |
AuthName 'Authentication required' | |
AuthUserFile /www/htdocs/meinpfad/.htpasswd | |
# Allow access to excluded diretories | |
SetEnvIf Request_URI /api noauth=1 | |
Require env noauth | |
Require env REDIRECT_noauth | |
Require valid-user |
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
#https://unix.stackexchange.com/questions/570743/cp-rsync-overwrite-if-smaller-backup-original-and-then-overwrite-if-larger | |
# get the size and filnames of files in '/tmp/A' directory and loop through each file found | |
ls /tmp/A | while read filename | |
do | |
# get the size of file in 'A' directory | |
sizeA=$( ls -l "/tmp/A/${filename}" | awk '{print $5}') | |
# get the size of corresponding file in 'B' directory | |
sizeB=$(ls -l "/tmp/B/${filename}" | awk '{print $5}') |
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
## find files over 500kb and save to file | |
find ./public/media/ -type f -size +500k >> images-media-05mb.txt; |
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/magento mo:dis Yireo_NextGenImages Yireo_Webp2 Hyva_YireoNextGenImages; | |
bin/magento mo:dis Facebook_BusinessExtension Openstream_GoogleAnalytics Amasty_RequestQuote Magefan_Blog Hyva_MagefanBlog Divante_Storelocator Amasty_Storelocator; | |
bin/magento mo:st; | |
## compile static files watcher | |
cd app/design/frontend/Openstream/hyva_ch/web/tailwind/; | |
npm run watch; | |
/usr/local/bin/php -d memory_limit=-1 /usr/local/bin/composer require hyva-themes/magento2-wysiwyg-svg |
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
#LiNK : https://www.varnish-software.com/developers/tutorials/troubleshooting-varnish/#varnish-is-not-caching | |
## see log for all / homepage request - start command and then visit site in browser | |
sudo varnishlog -i ReqUrl -i ReqMethod -i ReqProtocol -I ReqHeader:Host -I ReqHeader:Cookie -I ReqHeader:Authorization -i VCL_call -i VCL_return -q "ReqUrl eq '/'" |
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 missing libs | |
apt-get install gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils | |
# libxcomposite-dev libxdamage1 libxtst6 libxi6 libgconf-2-4 libnss3 libxrandr2 libatk-bridge2.0-0 libpangocairo-1.0-0 libgtk-3-0 libgtk-3-0 libxss1 libx11-xcb-dev libasound2 |
NewerOlder