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 | |
/** | |
* Plugin Name: Site Testing | |
* Plugin URI: https://gist.github.com/afragen/a30b7766d8eb1aa22018130dfd5034f4 | |
* Description: This plugin is used for site testing. | |
* Version: 0.4 | |
* Author: Andy Fragen | |
* License: MIT | |
* Requires at least: 5.2 | |
* Requires PHP: 7.1 |
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 | |
/** | |
* WP Mail SMTP Shim for WP 5.5 plugin bootstrap. | |
* | |
* @package WP_Mail_SMTP_Shim | |
* @author Andy Fragen | |
* @license MIT | |
* | |
* @wordpress-plugin | |
* Plugin Name: WP Mail SMTP Shim for WP 5.5 |
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 | |
/** | |
* Switch Plugin Dependency Label for WP Dependency Installer | |
* | |
* @package Switch_Plugin_Dependency_Label | |
* @author Andy Fragen | |
* @license MIT | |
* | |
* @wordpress-plugin | |
* Plugin Name: Switch Plugin Dependency Label |
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
<?xml version="1.0"?> | |
<ruleset name="WordPress-Beta-Tester"> | |
<description>Keep long array syntax.</description> | |
<!-- Include main ruleset.xml --> | |
<rule ref="/Users/afragen/code-standards/ruleset.xml"/> | |
<rule ref="Generic.Arrays.DisallowShortArraySyntax" /> | |
<!-- Use only long arrays --> | |
<rule ref="Generic.Arrays"> |
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 | |
/** | |
* Plugin Name: Set Category Colors Options Hash | |
* Author: Andy Fragen | |
* Author URI: https://github.com/afragen | |
* Version: 0.1 | |
* Requires PHP: 5.3 | |
*/ | |
add_filter( 'teccc_set_options_hash', function(){ |
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
alias wp-git-core="sh -c \"\$(curl -fsSL https://gist.github.com/afragen/e1aa3ffccf1a73618ee6e756bd95d297/raw/core-git-wp.sh)\";cd ." | |
alias wp-git-develop="sh -c \"\$(curl -fsSL https://gist.github.com/afragen/e1aa3ffccf1a73618ee6e756bd95d297/raw/develop-git-wp.sh)\";cd ." | |
alias local-socket="SOCKET=\$(mysqld --verbose --help | grep ^socket | awk '{print \$2, \$3, \$4}');ln -sfv \$SOCKET /tmp/mysql.sock" | |
alias brewup="brew update && brew upgrade && brew cleanup && brew doctor" | |
#lsof -i | grep LISTEN | grep 'nginx\|httpd' | |
alias http-listen="lsof -i | grep LISTEN | grep 'nginx\|httpd'" |
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
#!/usr/bin/env bash | |
# ==================================================================================== | |
# Script to install patches or changesets to https://core.trac.wordpress.org | |
# I use with Local Lightning by Flywheel by installing in `/app` directory. | |
# | |
# Patches and changesets are saved in `/tmp/` as a default. | |
# You will use the patch URL in the script. | |
# ==================================================================================== |
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
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
local processor="$(uname -m)" | |
PROMPT='${ret_status} $fg[grey]%m $fg[cyan]${processor}: %{$fg[cyan]%}${PWD/#$HOME/~}%{$reset_color%} $(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
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
cd .. | |
mv ./public/wp-config.php . | |
rm -rf ./public | |
git clone git://core.git.wordpress.org/ public | |
ln -sv $PWD/wp-config.php $PWD/public/wp-config.php | |
curl -o ./public/.gitignore https://gist.githubusercontent.com/afragen/43dfff563e942353d866c81904498cb2/raw/.gitignore | |
curl -o setup-phpunit.sh https://raw.githubusercontent.com/afragen/setup-phpunit/master/setup-phpunit.sh | |
curl -o apply-trac-patch.sh https://gist.githubusercontent.com/afragen/977d765414189d5f5fae42215fe92a27/raw/apply-trac-patch.sh | |
bash setup-phpunit.sh --wp-version=trunk --wp-ts-version=trunk | |
cd public/ |
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
#!/usr/bin/env bash | |
# =============================================================================== | |
# Script to install PHPUnit in the Local by Flywheel Mac app | |
# These packages are installed | |
# | |
# PHPUnit, curl wget, rsync, git, subversion and composer. | |
# | |
# WordPress is installed in the `/tmp/wordpress` directory for use by PHPUnit. | |
# The WordPress test suite is installed in the `/tmp/wordpress-tests-lib` directory. |