Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Leonardo Gandini LeonardoGandini

🎯
Focusing
View GitHub Profile
@LeonardoGandini
LeonardoGandini / wpdwna.sh
Last active Sep 20, 2020
Automate WordPress and wp-config.php creation
View wpdwna.sh
# Download Latest Wordpress archive from WP org
wget https://wordpress.org/latest.tar.gz
#Extract the archive showing the progress
pv latest.tar.gz | tar xzf - -C .
#Copy the content of WP Salts page
WPSalts=$(wget https://api.wordpress.org/secret-key/1.1/salt/ -q -O -)
#generate a random string; lower and upper case letters + numbers; maximun 9 characters