Included are the steps for macOS and Ubuntu/Debian. I didn't do Windows because I don't have or use Windows. My bad.
# Install Java 7 on Ubuntu 16.04 | |
add-apt-repository ppa:webupd8team/java | |
apt update | |
apt install oracle-java7-installer | |
# Install JMeter. | |
cd /tmp | |
wget -c http://mirrors.ibiblio.org/apache//jmeter/binaries/apache-jmeter-3.0.tgz | |
cd /opt | |
tar -xvzf /tmp/apache-jmeter-3.0.tgz |
alias update="npm install npm -g ; npm update -g ; apm upgrade -c false ; composer global update ; wp cli update --nightly --yes ; brew update; brew cask update ; brew upgrade ; brew cleanup" |
My suggested list of terminal commands for your brand new PocketCHIP. These do the following things:
- Reset your password.
- Give you
root
user access to update and install software. - Update your PocketCHIP's core operating system.
- Make sure that your locale and time zone data is right.
- Install SSH and shut off WiFi power saving to prevent timeouts.
- Install Pocket Home (Marshmallow edition).
- Install
rsync
for easier file copying. (Optional) - Install
git
to easily grab projects from GitHub. (Optional)
One of the ways that WP Engine determines what's a valid login attempt — and what's a script based brute force attack — is by requiring a query argument (of wpe-login
) on all login attempts. The value must match the name of the install in order to be considered valid.
The install name is defined with PWP_NAME
in wp-config.php
on all WP Engine installs.
An example of a valid URL to submit your login query to is:
http://domain.com/wp-login.php?wpe-login=PWP_NAME
If you'd like to detect if you're on a WP Engine install, it's best if you check for the existence of the wpe_site
function.
# Note: You won't have access to this command until you run `source ~/.bash_profile` or log back in! | |
# Call this from cron or run manually as needed. | |
function update() { | |
echo "" ; echo "`date`: RUNNING: npm update" | |
npm install npm -g # Update npm itself | |
echo "`date`: FINISHED: npm update" ; echo "" ; echo "`date`: RUNNING: npm package updates" | |
npm update -g # Update installed npm packages | |
echo "`date`: FINISHED: npm package updates" ; echo "" ; echo "`date`: RUNNING: atom update" | |
apm upgrade -c false # Update Atom packages & themes |
Tests run on an HGV Vagrant using siege
(3.0.5) with 25 concurrent users for 5 minutes.
TL;DR: PHP 7 was 2.6 times faster than PHP 5.5
. .. . . s:2s2c526555c2c225c2;s:; . . .... . . | |
. .. . . ;.2s62YSPYZYPYZ6DZDPDPEDDDDEEHPPZPYPPPZPZPZPYP22:: . . .... . . | |
. .. . ssSSYYDZDPEDDPEDDDDDPZDPHHHHHENNNNDEDDNNEHPPDEDDDDDEDEEHDEY622. . : .... . . | |
. .. . . 66EDHENNNHZPDPEDEEHEHHHHHNNNDDDDPPPPPPEDPPEEEEEHHHHHHHHENNHHHNHNHNNNNNEDZZs. . .... . . | |
. .. .: .25DPNDEDPZZZZZSZDDEDPDDDDDYZYY6S6S6S666562S6YYSSSSSSZYPZPYPZDPEHEDDDEEDDEHEHEHEHPY5s. . :... . . . | |
. .. . . 25EPEDDDE |
brew install git ; brew install caskroom/cask/brew-cask ; brew cask install vagrant ; brew cask install virtualbox ; vagrant plugin install vagrant-ghost |
#!/bin/bash | |
echo "" | |
echo "`date`: RUNNING: brew update" | |
/usr/local/bin/brew update | |
echo "`date`: FINISHED: brew update" | |
echo "" |