Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.
Note that you need the https://brew.sh/ package manager installed on your machine.
brew install fish
Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.
Note that you need the https://brew.sh/ package manager installed on your machine.
brew install fish
Ventura docs for M2 Macs in this comment: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340
Old Monterey docs in this old revision: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd/32c410e3a1de73539c76fa13ea5486569c4e0c5d
Solution for Sonoma: https://gist.github.com/sghiassy/a3927405cf4ffe81242f4ecb01c382ac
This repository contains a list of practice tasks to build skill important to be a good php engineer. Magento 2 just happens to be a tool that we are using here to understand large codebases. Principles learned while deep diving into Magento are very similar to principles used in other frameworks.
Before you jump into Magento 2 codebase, it's important to understand configurations available in Magento. Install opensource version on your local machine.Explore at
# found at: | |
# http://stackoverflow.com/questions/1895059/git-revert-to-a-commit-by-sha-hash | |
# reset the index to the desired tree | |
git reset --hard 56e05fced | |
# move the branch pointer back to the previous HEAD | |
git reset --soft HEAD@{1} | |
git commit -m "Revert to 56e05fced" |
<?php | |
/** | |
* Return the path of the auth.json file. | |
*/ | |
function findAuthJson() { | |
// Windows sets HOMEDRIVE and HOMEPATH, but cygwin sets HOME. | |
if (!isset($_SERVER["HOME"]) && isset($_SERVER["HOMEDRIVE"])) { |
Connect the external drive to MacOS. It should mount read-only. Start "System Information", clic on Hardware -> Storage, select your drive in the list and copy its UUID.
Another way to get the UUID is to use the diskutil CLI tool:
~$ diskutil list
~$ distutil info diskXsY
SET FOREIGN_KEY_CHECKS = 0; | |
#clear orders | |
TRUNCATE TABLE `gift_message`; | |
TRUNCATE TABLE `quote`; | |
TRUNCATE TABLE `quote_address`; | |
TRUNCATE TABLE `quote_address_item`; | |
TRUNCATE TABLE `quote_id_mask`; | |
TRUNCATE TABLE `quote_item`; | |
TRUNCATE TABLE `quote_item_option`; | |
TRUNCATE TABLE `quote_payment`; |
composer require cweagans/composer-patches symplify/vendor-patches --dev | |
cp vendor/nette/di/src/DI/Extensions/InjectExtension.php vendor/nette/di/src/DI/Extensions/InjectExtension.php.old | |
#add changes in main file | |
vendor/bin/vendor-patches generate | |
#check file /patches/nette-di-di-extensions-injectextension.php.patch | |
#check composer.json | |
composer install |
warden/environments/magento2.base.yml
docker-compose YML file.warden env down && warden sync stop && warden env up -d && warden sync start
warden db import
.innodb_buffer_pool_size
: Will cache frequently read datawarden/environments/magento2.base.yml
docker-compose YML file.warden env down && warden sync stop && warden env up -d && warden sync start
warden db import
.innodb_buffer_pool_size
: Will cache frequently read data