Using Symfony 6 and Tailwind, refactor this into modern looking login form: Here place code snippet
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 | |
# This script replaces `${ENVIRONMENT_VAR}` with the value of `ENVIRONMENT_VAR` environment variable. | |
# Output is compacted with `-c` param of `jq` program. This means that no pretty printed JSON is returned as it is more suitable for machine processing. | |
set -e | |
jq -c 'with_entries( .value |= sub("(?<tmpl_var>\\$\\{.*?\\})"; "\(env[.tmpl_var[2:-1]])") )' "$1" |
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
<script> | |
const isActive = ref(true) | |
const error = ref(null) | |
const classObject = computed(() => ({ | |
active: isActive.value && !error.value, | |
'text-danger': error.value && error.value.type === 'fatal' | |
})) | |
</script> |
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
brew install libpq | |
PHP_CONFIGURE_OPTIONS="--with-pgsql --with-openssl --with-sodium --with-xsl --with-iconv=$(brew --prefix libiconv)" asdf install php 8.1.25 |
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
Generate PHP8.1 data model class with constructor promoted properties named ${DTO_NAME} with fields extracted from this array keys: | |
[ | |
"externalid" => $quoteItem->getItemId(), | |
"name" => $quoteItem->getName(), | |
"price" => $this->coreHelper->priceToCents($quoteItem->getPrice()), | |
"quantity" => $quoteItem->getQty(), | |
"sku" => $quoteItem->getSku(), | |
"description" => $quoteItem->getDescription(), | |
"imageUrl" => $imageUrl, | |
"productUrl" => $product->getProductUrl() |
Because Varnish doesn't support SSL, most people choose a setup where Nginx SSL will forward all traffic to Varnish and Varnish will forward will forward the traffic it cannot handle back to nginx. Or worse, bind Varnish on port 80 and direct all traffic into Varnish. This will already degrade performance, because Varnish will purge more because static files are also taking up room in the cache.
Next up, the Nginx configuration of Magento will handle static files.
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 | |
// Forked from https://github.com/magento/magento2/issues/19597#issuecomment-671880440 | |
use Magento\Framework\App\Bootstrap; | |
require __DIR__ . '/app/bootstrap.php'; | |
$bootstrap = Bootstrap::create(BP, $_SERVER); | |
$obj = $bootstrap->getObjectManager(); | |
$state = $obj->get(Magento\Framework\App\State::class); | |
$state->setAreaCode('adminhtml'); |
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
packer { | |
required_plugins { | |
amazon = { | |
version = ">= 1.0.0" | |
source = "github.com/hashicorp/amazon" | |
} | |
} | |
} | |
variable "aws_region" { |