Adding a CORS policy to an S3 bucket
2024-08-14
Amazon S3 buckets that are configured to work as public websites can support CORS, allowing assets such as JavaScript modules to be loaded by JavaS...
511 words
|
3 minutes
Ensure labels exist in a GitHub repository
2024-08-13
I wanted to ensure that when [this template repository](https://github.com/simonw/action-transcription) was used to create a new repo that repo wou...
151 words
|
1 minute
Registering new Datasette plugin hooks by defining them in other plugins
2024-08-13
I'm experimenting with a Datasette plugin that itself adds new plugin hooks which other plugins can then interact with.
137 words
|
1 minute
Configuring auto-update for an Electron app
2024-08-11
This is _almost_ really simple. I used [electron/update-electron-app](https://github.com/electron/update-electron-app) for it, the instructions for...
355 words
|
2 minutes
Setting cache-control: max-age=31536000 with a Cloudflare Transform Rule
2024-08-06
I ran https://simonwillison.net/ through [PageSpeed Insights](https://pagespeed.web.dev/) and it warned me that my static assets were not being ser...
607 words
|
3 minutes
Redirecting a domain using Cloudflare Pages
2024-08-05
I wanted to redirect https://global-power-plants.datasettes.com/ to https://datasette.io/ - I decided to spin up a Cloudflare Pages site to do the ...
652 words
|
3 minutes
Limited JSON API for Google searches using Programmable Search Engine
2024-08-05
I figured out how to use a JSON API to run a very limited Google search today in a legit, non-screen-scraper way.
508 words
|
3 minutes
Loading lit from Skypack
2024-08-05
[Lit 2](https://lit.dev/blog/2021-09-21-announcing-lit-2/) stable was released today, offering a tiny, feature-full framework for constructing web ...
100 words
|
1 minute