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
DELETE FROM core_config_data WHERE config_id IN (SELECT config_id | |
FROM (SELECT DUPS.* | |
FROM core_config_data ORIG | |
LEFT JOIN core_config_data DUPS | |
ON ORIG.path = DUPS.path AND (ORIG.value = DUPS.value OR (ORIG.value IS NULL AND DUPS.value IS NULL)) | |
AND DUPS.scope != "default" AND DUPS.scope_id != 0 | |
WHERE ORIG.scope = "default" | |
AND ORIG.scope_id = 0 | |
AND DUPS.path IS NOT NULL) as tmp) |
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
server1: | |
user: peterjaap | |
password: | |
port: 3306 | |
host: db | |
server2: | |
user: peterjaap | |
password: | |
port: 3306 | |
host: db |
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
tag_save_after | |
admin_roles_save_after | |
admin_user_save_after | |
review_save_after | |
catalogsearch_query_save_after | |
sales_order_save_after | |
sales_quote_address_save_after | |
sales_quote_payment_save_after | |
sales_quote_item_save_after | |
sales_quote_save_after |
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 VirtualMeetup\SitemapCrawler\Console\Command; | |
use Graze\ParallelProcess\Event\RunEvent; | |
use Graze\ParallelProcess\PriorityPool; | |
use Graze\ParallelProcess\RunInterface; | |
use Magento\Framework\Filesystem\Driver\File; | |
use Magento\Framework\HTTP\Client\Curl; |
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
image: docker:latest | |
stages: | |
- build | |
build: | |
stage: build | |
only: | |
- master | |
image: |
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
# filter by request host header | |
varnishlog -q 'ReqHeader ~ "Host: example.com"' | |
# filter by request url | |
varnishlog -q 'ReqURL ~ "^/some/path/"' | |
# filter by client ip (behind reverse proxy) | |
varnishlog -q 'ReqHeader ~ "X-Real-IP: .*123.123.123.123"' | |
# filter by request host header and show request url and referrer header |
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 | |
# Move duplicate themes files to new theme | |
OLDVENDOR="Vendor" | |
NEWVENDOR="Newvendor" | |
NEWTHEMENAME="Themename" | |
find app/design/frontend ! -empty -type f -exec md5sum {} + | sort | uniq -w32 -dD | cut -d' ' -f3 | while read a; | |
do |
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 | |
$url = "http://www.packit4me.com/api/call/raw"; | |
$previewUrl = "http://www.packit4me.com/api/call/preview"; | |
$bin = [ | |
'id' => 0, | |
'maxweight' => 50, | |
'dimensions' => '5x5x5' | |
]; |
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 | |
set_time_limit(0); | |
//THIS SCRIPT JUST INITIALS THE PROFILE TO BE RUN VIA MAGENTO ADMIN "RUN PROFILE IN POPUP". Its the same thing as click just via this file that you can run via cron | |
$profileId = $argv[1]; // SYSTEM - IMPORT/EXPORT - DATAFLOW PROFILES PROFILES <-- you need to go into your magento admin and grab the exact profile ID | |
require_once 'app/Mage.php'; | |
umask(0); | |
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); |
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
find app/design/frontend/Limburgia/default -maxdepth 1 -type d | grep -vE "web|etc|i18n|media" | |
app/design/frontend/Limburgia/default | |
app/design/frontend/Limburgia/default/Magento_Customer | |
app/design/frontend/Limburgia/default/Magento_ConfigurableProduct | |
app/design/frontend/Limburgia/default/Magento_LayeredNavigation | |
app/design/frontend/Limburgia/default/Magento_ReCaptchaCustomer | |
app/design/frontend/Limburgia/default/Magento_Wishlist | |
app/design/frontend/Limburgia/default/Magento_Checkout | |
app/design/frontend/Limburgia/default/Magento_CatalogSearch | |
app/design/frontend/Limburgia/default/Magento_Tax |