Save $10 by this Sign Up 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
#!/bin/bash | |
#inspired by k0d3r1s's script | |
set -euo pipefail | |
ARG1="${1:-master}" | |
source_repository="git@github.com:jbrada/magento-monorepo-example.git" | |
source_branch="$ARG1" |
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
#Cleanup remotes | |
for remote in $(git remote | grep -v '^origin$'); do git remote remove $remote; done | |
#Cleanup .github directories | |
cd app/code/Yireo | |
for dir in */; do rm -rf "${dir}.github"; done | |
#Commit! :) | |
git add . | |
git commit -m "Remove .github directories from all subfolders under app/code/Yireo" |
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 | |
hosts_file="/etc/hosts" | |
temp_file="/tmp/hosts.tmp" | |
record="127.0.0.1 facebook.com www.facebook.com instagram.com www.instragram.com" | |
add_record() { | |
if ! grep -qF "$record" "$hosts_file"; then | |
echo "$record" | sudo tee -a "$hosts_file" >/dev/null | |
echo "Record added successfully." |
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
1 exception(s): | |
Exception #0 (Exception): Deprecated Functionality: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/vendor/bsscommerce/product-label/Helper/Data.php on line 147 |
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); | |
/** | |
* @param int $achievementId | |
* @param string $achievementName | |
* @param DateTime $achievementDate | |
* @return string | |
*/ |
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 | |
use Magento\Sales\Model\Order; | |
interface OderDeliveryInterface | |
{ | |
public function getDeliveryDate(Order $order): \DateTime; | |
} |
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); | |
$file = fopen(__DIR__ . "/var/log/system.log", "r"); | |
$lineBuffer = ''; | |
for($characterPosition = 0; fseek($file, $characterPosition, SEEK_END) !== -1; $characterPosition--) { | |
$char = fgetc($file); | |
if ($char === PHP_EOL) { |
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
diff --git a/Plugin/Catalog/Model/Indexer/Product/Eav/Action/Rows.php b/Plugin/Catalog/Model/Indexer/Product/Eav/Action/Rows.php | |
index 54283dc..92c44d6 100755 | |
--- a/Plugin/Catalog/Model/Indexer/Product/Eav/Action/Rows.php | |
+++ b/Plugin/Catalog/Model/Indexer/Product/Eav/Action/Rows.php | |
@@ -12,7 +12,7 @@ use Magento\Catalog\Api\Data\ProductInterface; | |
use Magento\Framework\EntityManager\MetadataPool; | |
use Amasty\Shopby\Helper\Group as GroupHelper; | |
use Magento\Framework\DB\Adapter\AdapterInterface; | |
-use Magento\Catalog\Model\Indexer\Product\Eav\Action\Row as IndexerEavActionRow; | |
+use Magento\Catalog\Model\Indexer\Product\Eav\Action\Rows as IndexerEavActionRows; |