Skip to content

Instantly share code, notes, and snippets.

From 74384936ab3b9354a57baf3291462c9fdd57d90a Mon Sep 17 00:00:00 2001
From: Thomas Sibley <tsibley@fredhutch.org>
Date: Wed, 21 Sep 2022 15:45:11 -0700
Subject: [PATCH] wip! footing
---
Dockerfile | 10 ++++++++--
devel/build | 21 +++++++++++++++++++--
devel/pull | 4 +++-
devel/push | 15 ++++++++++-----
ps1() {
# Bold, bright white text (fg)…
printf '\[\e[1;97m\]'
local -a wordmark=(
'#4377cd '
'#4377cd N'
'#5097ba e'
'#63ac9a x'
'#7cb879 t'
diff --git a/bin/standalone-installer-unix b/bin/standalone-installer-unix
index e11445a..bfdfd3d 100755
--- a/bin/standalone-installer-unix
+++ b/bin/standalone-installer-unix
@@ -234,4 +234,6 @@ die() {
exit 1
}
-main "$@"
+if [[ -z "$BASH_SOURCE" || "$BASH_SOURCE" == "$0" ]]; then
From c65b3d35c4057f7cb89ad60319bedb4fc0ca811e Mon Sep 17 00:00:00 2001
From: Thomas Sibley <tsibley@fredhutch.org>
Date: Tue, 13 Sep 2022 15:28:18 -0700
Subject: [PATCH] wip! managed-conda: Strict isolation mode
---
nextstrain/cli/command/shell.py | 13 ++++---
nextstrain/cli/runner/managed_conda.py | 47 ++++++++++++++++++--------
2 files changed, 42 insertions(+), 18 deletions(-)
import itertools
from rich.console import Console as RichConsole
from rich.text import Text as RichText
from typing import Union
flatten = itertools.chain.from_iterable
def heading(console: RichConsole, title: str) -> Union[str, RichText]:
From bf2fb3d9db142a57031ebdd4134c0d819d5ca910 Mon Sep 17 00:00:00 2001
From: Thomas Sibley <tsibley@fredhutch.org>
Date: Thu, 30 Sep 2021 17:00:43 -0700
Subject: [PATCH] wip! ES modules
---
Procfile | 2 +-
README.md | 10 +++++-----
develop.sh | 2 +-
docs/api.md | 2 +-
diff --git a/src/app.js b/src/app.js
index 75b14b7..4a03fb4 100644
--- a/src/app.js
+++ b/src/app.js
@@ -20,6 +20,7 @@ const PRODUCTION = process.env.NODE_ENV === "production";
const CANARY_ORIGIN = process.env.CANARY_ORIGIN;
const authn = require("./authn");
+const authz = require("./authz");
const endpoints = require("./endpoints");
async function map(iterable, fn = x => x) {
let array;
if (iterable.map) {
array = iterable;
} else {
array = [];
for await (const x of iterable) {
array.push(x);
}