If you're getting this kind of error when running Node.js programs with binary dependencies that don't support M1 yet, e.g.:
$ yarn test
dyld[51175]: missing symbol called
dyld[51176]: missing symbol called| /** | |
| * Esse é um estudo sobre Hashcash que acabou se tornando Proof of Work (POW) | |
| * | |
| * As semelhança que eu identifiquei: | |
| * - Ambos usam da capacidade computacional para resolver um desafio, que é encontrar um quantidade de zeros "0" | |
| * em uma hash SHA-256. | |
| * | |
| * As diferenças que eu identifiquei: | |
| * - Hashcash foi inicial feito para enviar spam de email. É um desafio enviado para pelo servidor, parecido com | |
| * versão:timestamp_de_validade:nonce:SHA-256:SOLUÇÃO. A solução é o que o cliente (navegador) precisa descobrir. |
Devemos explicar o problema claramente e identificar detalhes adicionais que a equipe precise saber. Devemos aqui descrever o contexto, o que foi feito até agora e o estado atual.
A descrição também serve como uma trilha à qual podemos voltar no futuro para entender o raciocínio que tínhamos na época e ver quais restrições e requisitos mudaram.
| <?php | |
| // Initiate Symfony | |
| require_once __DIR__ . '/vendor/autoload.php'; | |
| use Symfony\Component\Process\Process; | |
| // Basic-Configuration | |
| $config = [ | |
| 'bin' => 'bin/satis', | |
| 'json' => 'satis.json', |
See also this alternative approach: https://gist.github.com/cmtickle/8900629447429126ffd7ff84e56ec780#to-patch-code-in-appcode
If you need to patch an M2 extension that isn't available to be installed via Composer, and you're concerned about losing edits directly to files in app/code/<Vendor> directory, you can install and then patch the extension locally using these steps:
Copy the extension into an arbitrary folder location like app/code/packages/VendorName/ModuleName (this assumes this module has a composer.json file with the package name of vendorname/module-modulename)
Run this command to add your custom package location to the composer repositories list:
composer config repositories.vendorname/module-modulename path app/packages/VendorName/ModuleName
Require the extension:
| [opcache] | |
| ; Determines if Zend OPCache is enabled | |
| opcache.enable=1 | |
| ; Determines if Zend OPCache is enabled for the CLI version of PHP | |
| ;opcache.enable_cli=1 | |
| ; The OPcache shared memory storage size. | |
| opcache.memory_consumption=512 |
| user nginx; | |
| # one(1) worker or equal the number of _real_ cpu cores. 4=4 core cpu | |
| worker_processes 4; | |
| # renice workers to reduce priority compared to system processes for | |
| # machine health. worst case nginx will get ~25% system resources at nice=15 | |
| worker_priority -5; |
| <?php | |
| class Item { | |
| private $id; | |
| public function __construct(int $id) | |
| { | |
| $this->id = $id; | |
| } | |
| public function id() : int | |
| { |
| # This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com | |
| # See https://www.byte.nl/blog/magento-cacheleak-issue | |
| # !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!! | |
| user app; | |
| worker_processes 4; | |
| pid /var/run/nginx.pid; | |
| events { |