Skip to content

Instantly share code, notes, and snippets.

Avatar

Douglas Beal dougbeal

View GitHub Profile
View webmention.json
{
"type": "entry",
"author": {
"type": "card",
"name": "Douglas Beal",
"photo": "https://webmention.io/avatar/secure.gravatar.com/a380aeff0fd796a545e3d5d85fb8c6a4a417289ee61e97d661d0e2248351d011.jpg",
"url": "https://dougbeal.com/2019/10/14/7320/"
},
"url": "http://dougbeal.com",
"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:\/\/www.instagram.com\/p\/BwAINURjIJt\/"],"mp-syndicate-to":["flickr-bridgy"],"photo":["https:\/\/dougbeal.com\/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:\/\/dougbeal.com\/","issued_by":"https:\/\/dougbeal.com\/wp-json\/indieauth\/1.0\/token","client
View event_posts_gone_bad.html
<meta property="og:image" name="twitter:image" content="https://dougbeal.com/wp-content/uploads/2018/07/hwc_558x558.png" /><img class="alignleft" src="https://unicyclic.com/images/hwc.svg" 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">
<h2>
<a class="u-url p-name" href="https://indieweb.org/events/2018-10-17-homebrew-website-club#Seattle_Area" target="_blank" rel="noopener">Homebrew Website Club Meetup – Seattle Area</a>
</h2>
<p><strong>Time:&nbsp;</strong><time class="dt-sta
@dougbeal
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
(quote
(a1 a2 b1 b2 b3))
(quote (a1 a2 a3 b2 b5)))) #'string<))
View photo post kind rendering
https://dougbeal.com/2018/09/05/2377/
KeyValue
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:"https://dougbeal.com/";s:9:"issued_by";s:48:"https://dougbeal.com/wp-json/indieauth/1.0/token";s:9:"client_id";s:21:"https://quill.p3k.io/";s:9:"issued_at";i:1536186868;s:4:"user";i:2;s:13:"last_accessed";i:1536188615;}'
mf2_type'a:1:{i:0;s:7:"h-entry";}'
mf2_content'a:1:{i:0;s:20:"Pre-XOXO rooftop BBQ";}'
mf2_category'a:1:{i:0;s:8:"XOXOfest";}'
mf2_mp-syndicate-to'a:1:{i:0;s:21:"bridgy-publish_flickr";}'
mf2_photo'a:2:{i:0;a:2:{s:5:"value";s:89:"https://dougbeal.com/wp-content/uploads/2018/09/CB0FD121-5B8C-4878-A8A8-FEC3CB39418F.jpeg";s:3:"alt";s:16:"Portland Skyline";}i:1;a:2:{s:5:"value";s:89:"https://dougbeal.com/wp-content/uploads/2018/09/BA379F66-8D28-4141-BD83-1AE581A7C13F.jpeg";s:3:"alt";s:20:"Origami Dollar Doggo";}}'
_mentionme'1'
@dougbeal
dougbeal / Contract Killer 3.md
Created Aug 31, 2018 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer 3.md

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
dougbeal / gist:8bdac6f550047ec31d3b487463d6a30c
Created Aug 8, 2018
micropub.rocks 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
Response
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: <https://dougbeal.com/wp-json/indieauth/1.0/token>; rel="token_endpoint"
Link: <https://dougbeal.com/?micropub=endpoint>; rel="micropub"
Expires: Wed, 11 Jan 1984 05:00:00 GMT
View micropub test errors
/usr/share/nginx/html/wp-content/plugins/wordpress-micropub/phpunit.xml.dist
Installing...
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%)
You can’t perform that action at this time.