Skip to content

Instantly share code, notes, and snippets.

@lambrospetrou
lambrospetrou / go-single-file-script-README.md
Last active October 10, 2024 12:28
Go script using gorun in a single file

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@lambrospetrou
lambrospetrou / d1-api-test-suite.hurl
Last active November 24, 2024 04:29
Hurl test suite for the Cloudflare D1 REST API as explained in https://www.lambrospetrou.com/articles/hurl-cloudflare-d1/
# Cloudflare D1 REST API testing suite.
# https://www.lambrospetrou.com/articles/hurl-cloudflare-d1/
# Try to create the test database!
# This can fail if the database with the same name exists already, so we will check
# if this fails and then delete and re-create it.
POST https://api.cloudflare.com/client/v4/accounts/{{ CLOUDFLARE_ACC_ID }}/d1/database
Authorization: Bearer {{ CLOUDFLARE_TOKEN }}
{
"name": "skybear-test-001",