- http
- post-webmention :source, :target
- Return 400 if source and target are not valid URLs
- Return 400 if source is the same as target
- Return 400 if target is not a known domain
- Return 400 if source’s domain is found in blocks table
- Create random ID to represent webmention
- Put id, source, target, created_at in webmentions table
- post-webmention :source, :target
- Put id, webmention_id, created_at, description in statuses table
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
// Make request to this URL with ?id={your house ID} | |
// Returns ICS | |
export const northHertsWaste = async (req) => { | |
const cheerio = await import("npm:cheerio"); | |
const ics = await import("npm:ics"); | |
const searchParams = new URL(req.url).searchParams; | |
const id = searchParams.get("id"); | |
const url = `https://north-herts.whitespacews.com/north/Address/Details/${id}`; |
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
# Transfer Read Later JSON export from Reeder to Readwise Reader via its API. | |
# Batches posts because of API's 20 requests per minute rate limit. | |
require 'json' | |
require 'httparty' | |
offset = 0 | |
max = 20 | |
token = ENV['token'] | |
api_url = 'https://readwise.io/api/v3/save/' |
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
{ | |
"mp-action": "update", | |
"url": "http://example.com/post/1", | |
"replace": { | |
"content": ["hello moon"], | |
"name": ["about the moon"] | |
}, | |
"add": { | |
"syndication": ["https://archive.org/"], | |
"category": ["micropub"] |
I hereby claim:
- I am barryf on github.
- I am barryf (https://keybase.io/barryf) on keybase.
- I have a public key whose fingerprint is 800F 6580 CF4E 0482 1F34 4961 EBDF 53B1 84DD D4B7
To claim this, I am signing this object:
Department: Product
Manager: CPO
Location: London
Build and maintain the company’s online dating platforms and other strategic technologies. Adopting the Product Owner role in Scrum teams, plan, manage and deliver product projects, measuring and reporting on success to stakeholders. Working at the intersection of technology, user experience and the business you will be expected to deliver innovative and effective solutions for our customers.