Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike Schroder getsource

View GitHub Profile
@getsource
getsource / gutenberg_manual_release.md
Last active Sep 21, 2021
Resuming a failed Gutenberg ZIP build Notes
View gutenberg_manual_release.md

First, I re-ran the ZIP build. This doesn't bump the version number a second time (which is great), but it does fail with release draft creation.

Here's a message that I sent to Riad to check assumptions (Riad mentioned it was 👍, and this worked when we tried it):


Okay! I’ve been working on the release today.

I dug into the scripts a bit, and it looks like while build-plugin-zip does put new commits on top of the new (pending) Release Notes, it does not seem to handle tagging or updating the changelog following updates in the RC Release / Notes to reflect any changes during RC. So, my current hypothesis is to recreate these conditions:

@getsource
getsource / services-start.sh
Created Sep 21, 2020 — forked from Jimmy-Z/services-start.sh
multi SSID with VLAN script, for ASUS AC86U with merlin
View services-start.sh
#!/bin/sh
# multi SSID with VLAN script, for ASUS AC86U with merlin
#
# setup before hand:
# set "router" to "AP Mode"
# this will put all ports and wireless in br0
# create 2 guest network
# enable Administration => System => Enable JFFS custom scripts and configs
# put this script in /jffs/scripts/, name should be "services-start"
@getsource
getsource / junit.xml
Created Mar 31, 2020
Test WordPress phpunit `junit.xml` file with failures from PDF disable in `policy.xml`.
View junit.xml
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="" tests="10279" assertions="51407" failures="3" errors="1" time="169.605525">
<testsuite name="default" tests="10254" assertions="51160" failures="3" errors="1" time="169.142043">
<testsuite name="Tests_Actions" file="/tmp/wp-current-test/tests/phpunit/tests/actions.php" tests="25" assertions="98" failures="0" errors="0" time="0.102243">
<testcase name="test_simple_action" class="Tests_Actions" file="/tmp/wp-current-test/tests/phpunit/tests/actions.php" line="10" assertions="3" time="0.003842"/>
<testcase name="test_remove_action" class="Tests_Actions" file="/tmp/wp-current-test/tests/phpunit/tests/actions.php" line="27" assertions="4" time="0.003248"/>
<testcase name="test_has_action" class="Tests_Actions" file="/tmp/wp-current-test/tests/phpunit/tests/actions.php" line="46" assertions="6" time="0.002852"/>
View gist:ae3b65bb2994ec6924e8
* Install VirtualBox
* Install Vagrant
* Copy VVV.zip to Local HD
* Pass Drive on
* Decompress ZIP, and from new VVV Folder:
* `vagrant box add ubuntu/trusty64 contributor.box`
* `vagrant plugin install vagrant-hostsupdater`
View excel-table.html
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 14">
<link id=Main-File rel=Main-File
@getsource
getsource / heartbeat-comments.php
Last active Dec 21, 2015
Heartbeat Sample plugin
View heartbeat-comments.php
<?php
/*
Plugin Name: Heartbeat Comment Update
Description: Updates Comment Count on Dashboard with Heartbeat.
Author: Andrew Ozz, Mike Schroder
Version: 0.2
Author URI: http://www.getsource.net
*/
add_filter( 'heartbeat_received', 'wc_heartbeat_comment_count', 10, 3 );
View bad-plugin.php
<?php
/*
Plugin Name: Bad Plugin
Plugin URI: http://github.com/wp-cli/wp-cli
Description: Creates a difficult to search-replace option
Author: Mike Schroder
Version: 0.1
Author URI: http://www.getsource.net/
*/
@getsource
getsource / secretplace.php
Created Jan 31, 2013
Make your dashboard your secret place.
View secretplace.php
<?php
/*
Plugin Name: Secret Place
Plugin URI: http://github.com/getsource
Description: Make your dashboard your secret place.
Author: Mike Schroder and Jason Cosper
Version: 0.1
Author URI: http://www.getsource.net/
*/
@getsource
getsource / pre-3.5.1-phpunit-single
Created Jan 24, 2013
Pre 3.5.1 PHPUnit tests - Single Site
View pre-3.5.1-phpunit-single
Path: wordpress
URL: http://core.svn.wordpress.org/branches/3.5
Repository Root: http://core.svn.wordpress.org
Repository UUID: 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Revision: 23343
Node Kind: directory
Schedule: normal
Last Changed Author: nacin
Last Changed Rev: 23343
Last Changed Date: 2013-01-24 12:14:49 -0800 (Thu, 24 Jan 2013)