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
| <?php | |
| namespace Auctane\Api\Controller\Auctane; | |
| use Exception; | |
| use Magento\Framework\App\CsrfAwareActionInterface; | |
| use Magento\Framework\App\Request\InvalidRequestException; | |
| use Magento\Framework\App\RequestInterface; | |
| class Index extends \Magento\Framework\App\Action\Action implements CsrfAwareActionInterface | |
| { |
| ##### | |
| # Built & Tested against: v3.0.0-rc.16 | |
| # | |
| # The first time that this project is launched, it will take Lando a while to get past "waiting until nginx service is ready" | |
| # This is because Magento has not yet been setup and is 302-redirecting "/" to "/setup" while Lando is hoping for a "200" | |
| # response. One the setup has completed Lando will show a ready-state much more quickly on the next start-up. | |
| # Give this Lando project a unique name | |
| name: m2-community |
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
This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).
This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"If you're using brew you need to do nothing. weprovide/valet-plus#127
If you're using the native macos PHP, make sure php is running fine, and see what modules are installed
$php -m
You will see a bunch of modules but they're missing intl
Go here and choose the install script you need to go https://php-osx.liip.ch/
| <?php | |
| $query = <<<'GRAPHQL' | |
| query GetUser($user: String!) { | |
| user (login: $user) { | |
| name | |
| repositoriesContributedTo { | |
| totalCount | |
| } |
| # Disable need to provide password for sudo. use only if you can lock system when afk. | |
| # Add below line to the end of file, where replace $USER with your system username. | |
| sudo visudo | |
| $USER ALL=(ALL) NOPASSWD: ALL | |
| # Install fzf for better reverse search | |
| sudo apt install fzf | |
| cat /usr/share/doc/fzf/README.Debian # For how to integrate with your shell | |
| echo "source /usr/share/doc/fzf/examples/completion.bash" » ~/.bashrc |
| ########## Install NGINX ############## | |
| # Install software-properties-common package to give us add-apt-repository package | |
| sudo apt-get install -y software-properties-common | |
| # Install latest nginx version from community maintained ppa | |
| sudo add-apt-repository ppa:nginx/stable | |
| # Update packages after adding ppa |
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5.6 php5.6-cli php5.6-common libapache2-mod-php5.6 php5.6-mysql php5.6-fpm php5.6-curl php5.6-gd php5.6-bz2 php5.6-mcrypt php5.6-json php5.6-tidy php5.6-mbstring php5.6-intl php-redis php-memcached php-gettext php-xdebug
| <?php | |
| namespace Namespace\Cms\Setup; | |
| use Magento\Cms\Api\BlockRepositoryInterface; | |
| use Magento\Cms\Api\Data\BlockInterface; | |
| use Magento\Cms\Api\Data\BlockInterfaceFactory; | |
| use Magento\Framework\App\State; | |
| use Magento\Framework\App\Area; | |
| use Magento\Framework\Setup\InstallDataInterface; |