Skip to content

Instantly share code, notes, and snippets.

View HeikoMamerow's full-sized avatar

Heiko Mamerow HeikoMamerow

View GitHub Profile
/**
* Set environment type.
*
*
* Use in your wp-config.php.
+ You can put it before /* That's all, stop editing! Happy publishing. */
*
* Background info: https://make.wordpress.org/core/2020/07/24/new-wp_get_environment_type-function-in-wordpress-5-5/
*/
@HeikoMamerow
HeikoMamerow / Nginx-make.txt
Last active February 9, 2022 13:23
Build nginx with Google PageSpeed, Brotli and other modules
How to build your custom Nginx
==============================
Works fine for me with Ubuntu 16.04.
Automated Install with pagespeed module (Google)
------------------------------------------------
If you interested, read the original
Source: https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source
#!/usr/bin/env bash
# Update WordPress core plugins, themes and languages
wp core update && wp core update-db && wp language core update && wp plugin update --all && wp language plugin update --all && wp theme update --all && wp language theme update --all