Skip to content

Instantly share code, notes, and snippets.


Douglas Beal dougbeal

View GitHub Profile
View webmention.json
"type": "entry",
"author": {
"type": "card",
"name": "Douglas Beal",
"photo": "",
"url": ""
"url": "",
"published": "2019-10-14T13:00:28-07:00",
View gist:ba10911d5403636ae9e53b784858a70d
[15-Jun-2019 01:32:04 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_feed_build_date() in /var/www/html/wp-content/plugins/indieweb-post-kinds/templates/feed-atom.php:33
Stack trace:
#0 /var/www/html/wp-includes/template.php(704): require_once()
#1 /var/www/html/wp-content/plugins/indieweb-post-kinds/indieweb-post-kinds.php(117): load_template('/var/www/html/w...')
#2 /var/www/html/wp-includes/class-wp-hook.php(288): Post_Kinds_Plugin::do_feed_atom(false)
#3 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /var/www/html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#5 /var/www/html/wp-includes/functions.php(1399): do_action('do_feed_atom', false, 'atom')
#6 /var/www/html/wp-includes/template-loader.php(40): do_feed()
#7 /var/www/html/wp-blog-header.php(19): require_once('/var/www/html/w...')
View gist:df510323979f7a1ef35cc6beadef0786
[08-Apr-2019 17:15:27 UTC] Micropub Input: {"type":["h-entry"],"properties":{"content":["#AtlantaPenShow2019 decompression day. With more writing, of course. #nockshots Coleman is close to DK"],"category":["AtlantaPenShow2019","nockshots","instagram"],"published":["2019-04-08T16:54:53+00:00"],"syndication":["https:\/\/\/p\/BwAINURjIJt\/"],"mp-syndicate-to":["flickr-bridgy"],"photo":["https:\/\/\/wp-content\/uploads\/2019\/04\/igt3YLFx.jpg"]}}
[08-Apr-2019 17:15:28 UTC] wp_insert_post with args: {"timezone":"America\/Los_Angeles","post_date":"2019-04-08 09:54:53","post_date_gmt":"2019-04-08 16:54:53","post_category":[],"tags_input":["AtlantaPenShow2019","nockshots","instagram"],"post_content":"#AtlantaPenShow2019 decompression day. With more writing, of course. #nockshots Coleman is close to DK","meta_input":{"micropub_auth_response":{"token_type":"Bearer","scope":"create","me":"https:\/\/\/","issued_by":"https:\/\/\/wp-json\/indieauth\/1.0\/token","client
View event_posts_gone_bad.html
<meta property="og:image" name="twitter:image" content="" /><img class="alignleft" src="" alt="Homebrew Website Club Logo by Malcolm Blaney" />
Are you building your own website? Indie reader? Personal publishing web app? Or some other digital magic-cloud proxy? If so, come on by and join a gathering of people with likeminded interests. Bring your friends who want to start a personal web site. Exchange information, swap ideas, talk shop, help work on a project…
Everyone of every level is welcome to participate! Don’t have a domain yet? Come along and someone can help you get started and provide resources for creating the site you’ve always wanted.
<div class="h-event">
<a class="u-url p-name" href="" target="_blank" rel="noopener">Homebrew Website Club Meetup – Seattle Area</a>
<p><strong>Time:&nbsp;</strong><time class="dt-sta
dougbeal / sort-remove-dupes.el
Created Sep 26, 2018
sort and remove duplicate items for merging emacs package list when tracked in git
View sort-remove-dupes.el
(print (sort (remove-duplicates (append
(a1 a2 b1 b2 b3))
(quote (a1 a2 a3 b2 b5)))) #'string<))
View photo post kind rendering
micropub_auth_response'a:8:{s:10:"token_type";s:6:"Bearer";s:5:"scope";s:19:"create update media";s:2:"me";s:21:"";s:9:"issued_by";s:48:"";s:9:"client_id";s:21:"";s:9:"issued_at";i:1536186868;s:4:"user";i:2;s:13:"last_accessed";i:1536188615;}'
mf2_content'a:1:{i:0;s:20:"Pre-XOXO rooftop BBQ";}'
mf2_photo'a:2:{i:0;a:2:{s:5:"value";s:89:"";s:3:"alt";s:16:"Portland Skyline";}i:1;a:2:{s:5:"value";s:89:"";s:3:"alt";s:20:"Origami Dollar Doggo";}}'
dougbeal / Contract Killer
Created Aug 31, 2018 — forked from malarkey/Contract Killer
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

dougbeal / gist:8bdac6f550047ec31d3b487463d6a30c
Created Aug 8, 2018 wp media endpoint error
View gist:8bdac6f550047ec31d3b487463d6a30c
✔ Returned HTTP 200
✖ Returned a JSON object with a media-endpoint property with the full URL of the endpoint
HTTP/1.1 200 OK
Server: nginx/1.15.0
Date: Wed, 08 Aug 2018 16:57:26 GMT
Content-Type: application/json; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
View quill_error.txt
HTTP/1.1 400 Bad Request
Server: nginx/1.15.0
Date: Thu, 02 Aug 2018 04:03:21 GMT
Content-Type: application/json; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/7.2.6
Link: <>; rel="token_endpoint"
Link: <>; rel="micropub"
Expires: Wed, 11 Jan 1984 05:00:00 GMT
View micropub test errors
Running as single site... To run multisite, use -c tests/phpunit/multisite.xml
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
PHPUnit 6.5.9 by Sebastian Bergmann and contributors.
....................EEE.......................................... 65 / 88 ( 73%)
....................... 88 / 88 (100%)