Most of this comes originally from here: https://computingforgeeks.com/deploy-kubernetes-cluster-on-ubuntu-with-kubeadm/
Do a clean install of ubuntu 20.04 server, then apply updates:
sudo apt update
{ | |
"type": "object", | |
"title": "Consumer", | |
"properties": { | |
"_id": { | |
"bsonType": "objectId", | |
"tsType": "ObjectId" | |
}, | |
"uniqueSlug": { "type": "string" }, | |
"name": { "type": "string" }, |
/** | |
* Use this with a template literal in order to create reusable string template; | |
* use interpolation to add strings for each variable you want to use in the template. | |
* | |
* e.g.: | |
* | |
* const reUsableStringTemplate = stringTpl`${'name'} and ${'otherName'} are going to ${'place'}`; | |
* | |
* You can then call it with: | |
* |
// Collection wrapper, used as an easy way to configure things and a place to put simple helpers, | |
// also the basis for making a "Model" object | |
import * as mongodb from 'mongodb'; | |
import { JSONSchema4 } from 'json-schema'; | |
import camelCase from 'lodash/camelCase'; | |
interface IndexSpecification { | |
[key: string]: mongodb.IndexDirection; | |
} |
import _ from 'lodash'; | |
const ENV_PREFIX = `APP_CONFIG`; | |
function setEnvOverrides(cfg: Config) { | |
const foundVars = Object.keys(process.env).filter(name => name.startsWith(ENV_PREFIX)); | |
for (const v of foundVars) { | |
const actualName = v.substr(ENV_PREFIX.length); | |
// console.log(`Processing ENV var ${actualName}`); |
#!/bin/bash | |
allCRDs=$(kubectl get crd -o name | cut -d '/' -f 2) | |
nsCRD="" | |
clusterCRD="" | |
for crd in $allCRDs; do | |
scope=$(kubectl describe crd $crd | grep "Scope" | cut -d ':' -f 2 | sed 's/^ *//g') | |
if [ "$scope" == "Namespaced" ]; then |
#!/bin/bash | |
CMD="$@" | |
declare -i COUNT | |
declare -i SUCCESS | |
SUCCESS=0 | |
COUNT=0 | |
for i in {1..100}; do |
<script lang="ts"> | |
import {showDialog} from './dialogMgr'; | |
@Component() | |
export default class MyOtherComponent extends Vue { | |
markdown = '(some loaded markdown here)'; | |
async openDialog() { |
const dbConnections: Array<MongoClient> = []; | |
export type startupMiddleware = ReturnType<typeof initMiddleware>; | |
let failCase: Error; | |
export function setUnrecoverableError(err: Error) { | |
failCase = err; | |
console.warn(`Unrecoverable error set:`, err, err.stack); | |
} |
Most of this comes originally from here: https://computingforgeeks.com/deploy-kubernetes-cluster-on-ubuntu-with-kubeadm/
Do a clean install of ubuntu 20.04 server, then apply updates:
sudo apt update
// Originally written by Jason Sweeney, refactored by Richard Bateman | |
// 2021 | |
import axios from "axios"; | |
import cheerio from "cheerio"; | |
const stateListUrl = "http://www.arrl.org/ve-session-counts"; | |
const stateUrl = "http://www.arrl.org/ve-session-counts?state="; | |
type PromisedReturnType<T extends (...args: any) => any> = T extends (...args: any) => Promise<infer R> ? R : ReturnType<T>; |