Skip to content

Instantly share code, notes, and snippets.

Add module

Add repo

composer config repositories.amasty composer https://composer.amasty.com/community/

install module in composer

composer require amasty/module-page-speed-optimizer
composer update

Xdebug laravel artisan commands

php -dxdebug.remote_enable=1 -dxdebug.remote_autostart=on -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1 artisan my:command

JS Date String formating

(new Date('2020-05-14T04:00:00Z'))
    .toLocaleDateString(undefined, { 
         year: "numeric", 
         month: "long", 
         day: "numeric" 
})