Skip to content

Instantly share code, notes, and snippets.

View HeikoMamerow's full-sized avatar

Heiko Mamerow HeikoMamerow

View GitHub Profile
@HeikoMamerow
HeikoMamerow / create-a-self-signed-wildcard-ssl-cert
Last active January 3, 2018 23:56
create a self signed wildcard ssl cert
# Source: https://blog.sleeplessbeastie.eu/2016/11/14/how-to-generate-self-signed-ssl-certificate/
# Single domain
sudo openssl req -subj "/commonName=zwei.test/" -x509 -nodes -days 730 -newkey rsa:2048 -keyout zwei.test.key -out zwei.test.crt
# Wildcard domain
sudo openssl req -subj "/commonName=*.hei.test/" -x509 -nodes -days 730 -newkey rsa:2048 -keyout hei.test.key -out hei.test.crt
/**
* 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/
*/
#!/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