Skip to content

Instantly share code, notes, and snippets.

View behzod's full-sized avatar

Behzod Saidov behzod

View GitHub Profile
@behzod
behzod / wprs-2017-sample-script.sh
Created November 4, 2017 18:40
Sample Script for the "Introduction to WP-CLI" presentation (WPRS 2017)
#!/usr/bin/env bash
# Create the public_html folder and switch to it
mkdir public_html
cd public_html
# Download the WP core
wp core download
# Configure database settings
wp config create --dbname=example_website_dev --dbuser=root --dbpass=root
@behzod
behzod / countries.php
Created May 30, 2017 00:03
Countries array in PHP with 2 letter ISO codes and names
<?php
// Pulled from http://api.worldbank.org/countries?format=json&page=1&per_page=500
const CI_COUNTRIES_ARRAY = array (
'AW' => 'Aruba',
'AF' => 'Afghanistan',
'AO' => 'Angola',
'AL' => 'Albania',
'AD' => 'Andorra',
'AE' => 'United Arab Emirates',
'AR' => 'Argentina',