I hereby claim:
- I am Radiergummi on github.
- I am radiergummi (https://keybase.io/radiergummi) on keybase.
- I have a public key whose fingerprint is E221 7CF8 EE59 2CB0 9F03 A1C8 B315 6A31 942E 83A6
To claim this, I am signing this object:
import { type RouteParameters, type Routes } from '$api/routes.js'; | |
/** | |
* Resolve a route without parameters | |
* | |
* Takes the name of a route as defined in the Laravel application and returns | |
* the URI of the endpoint. | |
* | |
* @param name Route name | |
*/ |
import type { Client, Database } from '$lib/server/database'; | |
import type { Insertable, Selectable } from 'kysely'; | |
const table = 'authentication.challenge' as const; | |
export async function resolveCurrentChallenge( | |
client: Client, | |
identifier: string | |
) { | |
const { challenge, expires_at } = await client |
I hereby claim:
To claim this, I am signing this object:
<?php | |
declare(strict_types=1); | |
namespace App\Support; | |
use DateTime; | |
use Monolog\Formatter\FormatterInterface; | |
use Monolog\Formatter\LineFormatter; | |
use Monolog\LogRecord; |
This is the deployment runner script we use in our BitBucket pipelines. It does the following things, in this order:
DOCKER_HOST
(defaulting to the Docker socket), so you can also run this within a deployment container - see
below for more./** | |
* Partition an array into two arrays based on a predicate. | |
* | |
* @param array | |
* @param isValid | |
*/ | |
export function partition<T, V>( array: ( T | V )[], isValid: ( x: T | V ) => x is T ): [ T[], V[] ] { | |
return array.reduce( ( [ pass, fail ], elem ) => { | |
return isValid( elem ) ? [ [ ...pass, elem ], fail ] : [ pass, [ ...fail, elem ] ]; | |
}, [ [] as T[], [] as V[] ] ); |
#!/usr/bin/env sh | |
export DOCKER_HOST=unix:///var/run/docker.sock | |
docker_hosts=$(docker node ls --format '{{.Hostname}}') | |
# Retrieve the list of hosts from the Docker node (needs to run | |
# within the Swarm). | |
# We use this list to configure RabbitMQ statically: On every node | |
# in the cluster, a RabbitMQ instance is running. They are | |
# configured to use the Swarm node hostname as their hostname; so |
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"definitions": { | |
"Stripe.Account": { | |
"description": "The Account object.", | |
"properties": { | |
"business_profile": { | |
"$ref": "#/definitions/Stripe.Account.BusinessProfile", | |
"description": "Business information about the account." | |
}, |
/** | |
* Validates a value that isn't falsy. | |
* | |
* @param field | |
* @param message | |
*/ | |
export function required( | |
field?: string, | |
message?: string | Message<string>, | |
): Validator { |
<template> | |
<div v-dragging="{ enter, leave }"> | |
</div> | |
</template> | |
<script> | |
import './dragging.ts'; | |
export default { | |
methods: { |