Adjust Magento configuration by shell to achieve better performance

cd /var/www/domain.com/web;

# Settings that I use on the live server
php7.2 bin/magento config:set catalog/frontend/flat_catalog_product 1;
php7.2 bin/magento config:set catalog/frontend/flat_catalog_category 1;

php7.2 bin/magento config:set dev/js/enable_js_bundling 0;
php7.2 bin/magento config:set dev/css/minify_files 1;
php7.2 bin/magento config:set dev/js/minify_files 1;
php7.2 bin/magento config:set dev/template/minify_html 1;
php7.2 bin/magento config:set system/full_page_cache/ttl 86400;
php7.2 bin/magento config:set dev/grid/async_indexing 1;
php7.2 bin/magento config:set sales_email/general/async_sending 1;
php7.2 bin/magento config:set catalog/frontend/grid_per_page_values "12,24,36";
php7.2 bin/magento config:set catalog/frontend/grid_per_page "12";
php7.2 bin/magento deploy:mode:set production;

# Settings that I use on development server
php7.2 bin/magento module:disable Magento_AdminNotification;
php7.2 bin/magento config:set admin/dashboard/enable_charts 0;
php7.2 bin/magento config:set dev/css/merge_css_files 0;
php7.2 bin/magento config:set dev/css/minify_files 0;
php7.2 bin/magento config:set dev/css/minify_files 0;
php7.2 bin/magento config:set dev/js/minify_files 0;
php7.2 bin/magento config:set dev/template/minify_html 0;
php7.2 bin/magento config:set dev/static/sign 1;