mkdir YOURSITE
cd YOURSITE
git clone https://github.com/WordPress/WordPress .
lando init --recipe wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installing Docker CE and Lando inside of WSL2 | |
# This solution was found here: https://github.com/lando/lando/issues/1723 | |
#================================= | |
# Install WSL2 | |
#================================= | |
# Inside an Administrator session of PowerShell | |
wsl --install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Total Execution Time: 134 Min | |
$time_start = microtime(true); | |
$handle = fopen("sn_urls.inc", "r"); | |
// $handle = fopen("equipment.inc", "r"); | |
// $handle = fopen("positions.inc", "r"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Installation: | |
https://developer.wpengine.com/devkit/installation.html | |
// Getting Started | |
https://developer.wpengine.com/devkit/getting_started.html | |
// Clone Down Site | |
wpe clone <site> | |
wpe start | |
wpe projects list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp plugin install one-time-login --activate && wp user one-time-login <user> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ifModule mod_gzip.c> | |
mod_gzip_on Yes | |
mod_gzip_dechunk Yes | |
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ | |
mod_gzip_item_include handler ^cgi-script$ | |
mod_gzip_item_include mime ^text/.* | |
mod_gzip_item_include mime ^application/x-javascript.* | |
mod_gzip_item_exclude mime ^image/.* | |
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^site.net [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.site.net [NC] | |
RewriteRule ^(.*)$ http://www.site.com/$1 [L,R=301,NC] |
Examples will be shown using MacOS and Vagrant virtual machine (https://www.vagrantup.com/). Windows developers can aslo refer to https://www.sitepoint.com/getting-started-vagrant-windows/ on getting Vagrant up and running.
Once Vagrant is installed, a Scotch Box virtual machine will be used.
Step by Step (5 minute install)
- Move to your local directory where you would like your local development. For me it is ~/Sites
git clone https://github.com/scotch-io/scotch-box SITENAME
(this installs the VM into the directory SITENAME)cd SITENAME
(go into directory)vagrant up
(start Vagrant)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Round Robin | |
https://www.youtube.com/watch?v=408po8mEGcM | |
Google Calendar API | |
https://developers.google.com/google-apps/calendar/quickstart/php | |
https://developers.google.com/google-apps/calendar/v3/reference/events/list | |
https://developers.google.com/google-apps/calendar/v3/reference/events/get | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
NewerOlder