View init-dev-env-mag1.sh
This file contains 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
function init_dev_env_mag1() { | |
n98mr config:set dev/log/active 1 | |
n98mr config:set dev/template/allow_symlink 1 | |
n98mr config:set web/cookie/cookie_httponly 0 | |
n98mr config:set web/cookie/cookie_path "" | |
n98mr config:set web/cookie/cookie_domain "" | |
n98mr config:set dev/js/merge_files 0 | |
n98mr config:set dev/css/merge_files 0 | |
n98mr config:set dev/css/merge_css_files 0 | |
n98mr config:set admin/security/session_cookie_lifetime 7200 |
View m2-apply-permissions.sh
This file contains 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
function m2_apply_permissions() { | |
find . -type f -exec chmod 644 {} \; | |
find . -type d -exec chmod 755 {} \; | |
find ./var -type d -exec chmod 755 {} \; | |
find ./pub/media -type d -exec chmod 755 {} \; | |
find ./pub/static -type f -exec chmod 644 {} \; | |
find ./pub/static -type d -exec chmod 755 {} \; | |
chmod 755 ./app/etc | |
chmod 644 ./app/etc/*.xml | |
chmod u+x bin/magento |
View init-dev-env-mag2.sh
This file contains 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
function init_dev_env_mag2() { | |
n98mr2 deploy:mode:set developer | |
n98mr2 config:set dev/log/active 1 | |
n98mr2 config:set dev/template/allow_symlink 1 | |
n98mr2 config:set web/cookie/cookie_httponly 0 | |
n98mr2 config:set web/cookie/cookie_path "" | |
n98mr2 config:set web/cookie/cookie_domain "" | |
n98mr2 config:set dev/js/merge_files 0 | |
n98mr2 config:set dev/css/merge_files 0 | |
n98mr2 config:set dev/css/merge_css_files 0 |
View mkcd.sh
This file contains 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
function mkcd() { | |
mkdir -p $1 && cd "$_" | |
} |
View get-pageload-time.sh
This file contains 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
function get_pageload_time() { | |
curl -w "time_namelookup: %{time_namelookup}\ntime_connect: %{time_connect}\ntime_appconnect: %{time_appconnect}\ntime_pretransfer: %{time_pretransfer}\ntime_redirect: %{time_redirect}\ntime_starttransfer: %{time_starttransfer}\n----------\ntime_total: %{time_total}\n" -o /dev/null -s "$1" | |
} |
View get-http-status.sh
This file contains 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
function get_http_status() { | |
curl -s -o /dev/null -I -w "%{http_code}\n" $1 | |
} |
View EntityFactory.php
This file contains 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 | |
declare(strict_types=1); | |
namespace App\Framework\ObjectManager\Factory\Doctrine; | |
use App\Exception\ClassNotFoundException; | |
use Throwable; | |
/** |
View m2-generate-phpstorm-urn.sh
This file contains 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
function m2_generate_phpstorm_urn() { | |
bin/magento dev:urn-catalog:generate .idea/misc.xml | |
} |
View ArrayReader.php
This file contains 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 | |
declare(strict_types=1); | |
namespace App\Framework\Component\ObjectUtils\Reader; | |
/** | |
* Class ArrayReader | |
* | |
* @package App\Framework\Component\ObjectUtils\Reader |