Skip to content

Instantly share code, notes, and snippets.

View vl123's full-sized avatar

Vlad vl123

View GitHub Profile
@vl123
vl123 / wp-install.sh
Last active April 26, 2017 09:02
WP-CLI bash install script
#!/bin/bash
# functions
generate_password()
{
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -n 1
}
# variables
SITE_URL_PART=".example.com"