Title
GLAM Lab best practices
Abstract
Come up with a repeatable, testable framework for running a lab in context of GLAM R&D
# 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") |
{ | |
"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} |
#!/usr/bin/env python | |
#------------------------------------------------- | |
# file: twitcher.py | |
# author: Florian Ehmke | |
# description: dmenu for twitch streams | |
#------------------------------------------------- | |
import argparse | |
import requests | |
from subprocess import Popen, PIPE, STDOUT |
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) |
BEGIN MESSAGE. | |
Bo7OXbFJiyCUCi6 591BfcmzVpBLNP7 djseQNhq5fHf7BP rcV44f2NqNy8lDf | |
UXEsmaOiJlpupE8 zsfUgAPWb2dTCKq 6Xr2MZHgg7HeUSB drH1JEKBnf3uxnV | |
tgInHeCjdOXEeYk Vj4UCFmrGvfvJw1 TMGi0JZxLQI2PHA yY64bioRN4PnR9m | |
hKwj23bnAOvvOQ9 qi2sYMiyTlZqqjK TRRLe2IP. | |
END MESSAGE. |
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" |