Skip to content

Instantly share code, notes, and snippets.

View jedahan's full-sized avatar
💀
.

Jonathan Dahan jedahan

💀
.
View GitHub Profile
007
# python3 -m pip install fastapi pytest
# python3 -m pytest tests/post.py
from typing import Union
from fastapi import Form, FastAPI, Query
from fastapi.testclient import TestClient
app = FastAPI()
@app.post("/list")
@jedahan
jedahan / updates.json
Last active January 30, 2022 22:34
Storybook Brawl Live Updates
{
"name": "asdf",
"notes": "vvvvv",
"pub_date": "2022-01-30T22:34:40Z",
"platforms": {
"win64": {
"signature": "",
"url": "https://github.com/jedahan/sbb-live/releases/download/v0.2.10/storybook-brawl-live.zip"
}
}
#!/usr/bin/env bash
set -e
command -v multipass 2>/dev/null || die "missing multipass"
command -v podman 2>/dev/null || die "missing podman"
INSTANCE_NAME="podman"
VERSION_ID="20.04"
IDENTITY="${IDENTITY:-~/.ssh/id_rsa}"
PUBKEYFILE=${PUBKEY:-${IDENTITY}.pub}
BEGIN MESSAGE.
Bo7OXbFJiyCUCi6 591BfcmzVpBLNP7 djseQNhq5fHf7BP rcV44f2NqNy8lDf
UXEsmaOiJlpupE8 zsfUgAPWb2dTCKq 6Xr2MZHgg7HeUSB drH1JEKBnf3uxnV
tgInHeCjdOXEeYk Vj4UCFmrGvfvJw1 TMGi0JZxLQI2PHA yY64bioRN4PnR9m
hKwj23bnAOvvOQ9 qi2sYMiyTlZqqjK TRRLe2IP.
END MESSAGE.
ARCH ?= arm64
VERSION ?= 20.10
SPIN ?= live-server
vftool ?= ./vftool/build/vftool
DATA ?= ./data
ISO := ubuntu-$(VERSION)-$(SPIN)-$(ARCH).iso
MOUNTPOINT := /Volumes/Ubuntu
CD := $(DATA)/$(ISO)
VERSION=20.10
ISO=ubuntu-$(VERSION)-desktop-amd64.iso
MOUNTPOINT=/Volumes/Ubuntu
DATA ?= ./data
IMAGE ?= $(DATA)/$(ISO)
KERNEL ?= $(DATA)/vmlinuz
INITRD ?= $(DATA)/initrd
vftool ?= ./vftool/build/vftool
.PHONY: run select
VERSION=20.10
ISO=ubuntu-$(VERSION)-desktop-amd64.iso
MOUNTPOINT=/Volumes/Ubuntu
DATA ?= ./data
IMAGE ?= $(DATA)/$(ISO)
KERNEL ?= $(DATA)/vmlinuz
INITRD ?= $(DATA)/initrd
vftool ?= ./vftool/build/vftool
.PHONY: run select
#!/bin/sh -e
install -D file "$1/root/file"
basic() { echo '>'}