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 | |
# ======================== | |
# Varnish Cache Test Script for Magento 2 | |
# ======================== | |
# --- Configurable URLs --- | |
BASE_URL="https://mydomain.com" | |
# URLs can be comma-separated for multiple testing |
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 | |
require __DIR__ . '/app/bootstrap.php'; | |
use Magento\Framework\App\Bootstrap; | |
use Magento\Framework\App\ResourceConnection; | |
use Magento\Framework\Module\ModuleListInterface; | |
use Magento\Framework\Module\Dir\Reader as ModuleDirReader; | |
$bootstrap = Bootstrap::create(BP, $_SERVER); | |
$obj = $bootstrap->getObjectManager(); |
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 | |
# Step 1: Hash all files in app/ and vendor/ using sha256 and file size | |
find app -type f -exec stat --format="%s %n" {} + | while read -r size file; do | |
hash=$(sha256sum "$file" | cut -d' ' -f1) | |
echo "$size $hash $file" | |
done | sort > /tmp/app_files.txt | |
find vendor -type f -exec stat --format="%s %n" {} + | while read -r size file; do | |
hash=$(sha256sum "$file" | cut -d' ' -f1) |
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() { | |
var detectExtension = function(url, ifInstalled, ifNotInstalled) { | |
var link = document.createElement('link'); | |
link.rel = 'stylesheet'; | |
link.href = url; | |
link.onload = ifInstalled; | |
link.onerror = ifNotInstalled || function() {}; | |
document.head.appendChild(link); |
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
# A number of these changes come form the following PR's; , combines changes in https://github.com/magento/magento2/pull/29360, https://github.com/magento/magento2/pull/28944 and https://github.com/magento/magento2/pull/28894, https://github.com/magento/magento2/pull/35228, https://github.com/magento/magento2/pull/36524, https://github.com/magento/magento2/pull/34323 | |
# VCL version 5.0 is not supported so it should be 4.0 even though actually used Varnish version is 6 | |
# See the non-Xkey version here: https://gist.github.com/peterjaap/006169c5d95eeffde3a1cc062de1b514 | |
vcl 4.1; | |
import std; | |
import xkey; |
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
SECURITY & VALIDATION CHANGES: | |
1. app/code/Magento/Customer/Controller/Account/EditPost.php | |
- Removed file attribute deletion functionality for security | |
2. app/code/Magento/Config/Plugin/Model/Config/Backend/LocalePlugin.php | |
- Added new plugin to validate currency code values | |
3. app/code/Magento/Directory/Model/Config/Backend/WeightUnit.php | |
- Added new backend model to validate weight unit values |
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 | |
# Define the backup directory | |
BACKUP_DIR=~/backup-miyoo-games | |
SOURCE_DIR="/mnt/sd-card/Roms" | |
# Create the backup directory if it doesn't exist | |
mkdir -p "$BACKUP_DIR" | |
WELL_KNOWN_GAMES=( |
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 | |
# Path to the composer.json file | |
COMPOSER_FILE="composer.json" | |
TEMP_FILE="composer_temp.json" | |
# Checkout the composer.json file to avoid unwanted changes | |
git checkout "$COMPOSER_FILE" | |
# Create a new file to hold updated content |
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
SET @tables = NULL; | |
SELECT GROUP_CONCAT(table_schema, '.`', TABLE_NAME, '`') INTO @tables FROM ( | |
SELECT * | |
FROM information_schema.tables AS t | |
WHERE t.table_schema = 'DB NAME' | |
AND t.table_name REGEXP "^sequence_(.+)_[0-9]+" | |
AND SUBSTRING_INDEX(t.table_name, '_', -1) NOT IN (SELECT DISTINCT store_id FROM sales_sequence_meta) | |
) TT; | |
SET @tables = CONCAT('DROP TABLE ', @tables); |
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
@package magento/framework | |
@level 4 | |
@version >=103.0.6 <103.0.7 | |
diff --git a/vendor/magento/framework/App/DeploymentConfig.php b/vendor/magento/framework/App/DeploymentConfig.php | |
index 6713baa3a1d..64f32d5516b 100644 | |
--- a/vendor/magento/framework/App/DeploymentConfig.php | |
+++ b/vendor/magento/framework/App/DeploymentConfig.php | |
@@ -51,6 +51,16 @@ class DeploymentConfig | |
*/ |
NewerOlder