- Specified ammount of memeory
ini_set('memory_limit','2048M');
- Unlimited memory
ini_set('memory_limit', '-1');
-
On macOS using Homebrew run the following to install the packages
brew install cowsay fortune lolcat
-
Next add the following to
~/.bash_profile
# If brew installed fortune, cowsay, and lolcat
# Upon opening a new shell show a cowsay character with a random forutune in rainbow colors
- Install ngrok with hombrew
brew cask install ngrok
- Run ngrok for your local site
ngrok http -host-header=my.site.local 80
- Copy the https url that appears in the terminal and use it below to replace the ngrok.io url
- If using the standard WP setup add the following to the bottom of
wp-config.php
<?php
// Add a value if using NGROK
This file contains 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
#!/bin/bash | |
# must install JQ | |
# https://stedolan.github.io/jq/download/ | |
# on OSX brew install jq | |
# must set Github Personal Access Token with full repo access only | |
### Set named arguments -t | |
while getopts ":t:" opt; do |
This file contains 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
#!/bin/bash | |
### | |
# Use -r to compare against a remote branch | |
### | |
## Example w/o this script | |
## git fetch --all | git rev-list --left-right --count origin/master...master | |
$USAGE="$0 [-r <remote branch>]" |
This file contains 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 | |
/** | |
* The header for our theme | |
* | |
* This is the template that displays all of the <head> section and everything up until <div id="content"> | |
* | |
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials | |
* | |
* @package WordPress | |
* @subpackage Twenty_Seventeen |
This file contains 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
/**************** | |
***** FONT ****** | |
***************/ | |
body { | |
font-family: proxima-nova, Helvetica Neue, Helvetica, Arial, sans-serif !important; | |
font-size: 1rem !important; | |
font-weight: 300; | |
line-height: 1.5; | |
color: #83ACD8 !important; | |
} |
This file contains 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
# ZSH may require the versions to be in quotes (see comments below) | |
# Check version | |
node -v || node --version | |
# List installed versions of node (via nvm) | |
nvm ls | |
# Install specific version of node | |
nvm install 6.9.2 |
OlderNewer