Skip to content

Instantly share code, notes, and snippets.

@vesse
vesse / app.ts
Last active November 9, 2021 14:19
Fastify + TypeBox fully typed
import { Static, Type } from '@sinclair/typebox'
import fastify, { FastifyInstance, FastifyPluginAsync } from 'fastify'
import type { RouteGenericInterface, RouteHandler } from 'fastify/types/route'
const port = 8080
const requestBodySchema = Type.Object({
email: Type.Readonly(Type.String({ format: 'email' })),
})
@blvz
blvz / gh-deploy-clone.sh
Last active August 23, 2023 23:15
Creates a deploy key and clones the repository.
#!/usr/bin/env bash
read -r -d '' usage << EOM
Usage:
gh-deploy-clone user/repo [ENVIRONMENT]
EOM
[ -z "$1" ] && echo && echo "$usage" && echo && exit 1
@biinari
biinari / extract-123-reg-zonefile.js
Last active February 8, 2023 14:23
Script to extract the DNS entries from 123-reg advanced dns page
// Moved to a new home at https://github.com/biinari/zonefile-extract/tree/master/123-reg