This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
007 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
install -D file "$1/root/file" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basic() { echo '>'} |
NewerOlder