echo "%admin ALL = NOPASSWD: /usr/local/bin/valet" | sudo tee /etc/sudoers.d/valet-nopasswd
For more details see this page.
sudo nvram boot-args="serverperfmode=1 $(nvram boot-args 2>/dev/null | cut -f 2-)"
sudo reboot
| <?php | |
| /* | |
| A simple PHP class to perform basic operations against Amazon S3 and compatible | |
| services. Requires modern PHP (7+, probably) with curl, dom, and iconv modules. | |
| Copyright 2022 Marco Arment. Released under the MIT license: | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights |
| cd /tmp | |
| curl -O https://files.magerun.net/n98-magerun2.phar | |
| chmod +x ./n98-magerun2.phar | |
| XDG_CONFIG_HOME="/tmp" ./n98-magerun2.phar dev:console --root-dir=$MAGENTO_CLOUD_DIR |
| Lots of magento-cloud commands | |
| Lots of ece-tools commands | |
| Lots and lots of questions on each yaml | |
| setup multi website questions | |
| Failed deployments due to |
| #!/bin/bash | |
| # stop on errors | |
| set -e | |
| # turn on debugging if you're running into issues | |
| #set -x | |
| # Static variables | |
| ENVIRONMENT=$1 | |
| RED='\033[0;31m' | |
| NC='\033[0m' # No Color |
echo "%admin ALL = NOPASSWD: /usr/local/bin/valet" | sudo tee /etc/sudoers.d/valet-nopasswd
For more details see this page.
sudo nvram boot-args="serverperfmode=1 $(nvram boot-args 2>/dev/null | cut -f 2-)"
sudo reboot
Select component in inspector and dump (in FF for example):
inspect(require('ko').contextFor($0));
inspect(require('ko').dataFor($0));
Get component from registry:
require('uiRegistry').get('componenet.name.in.layout')
| # 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 { |
##1. Create the anchor file:
sodu vim /etc/pf.anchors/com.liuxingruo
Inside the anchor file, enter:
rdr pass on lo0 inet proto tcp from any to self port 80 -> 127.0.0.1 port 9191
rdr pass on en0 inet proto tcp from any to any port 80 -> 127.0.0.1 port 9191
rdr pass on en1 inet proto tcp from any to any port 80 -> 127.0.0.1 port 9191