Here be dragons. Use with extreme caution.
This script is designed to accept namespaces as a list of arguments and will perform a namespace child resource delete loop before terminating the namespace and any finalizers.
%matplotlib qt | |
import pyaudio | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from queue import Queue | |
import threading | |
import time | |
from IPython.display import display, clear_output |
#!/bin/bash | |
# This script resolves a DID, retrieves an API key, fetches a user's feed, | |
# and posts a "Hello, world" message to the user's feed. | |
# Resolve DID for handle | |
HANDLE='felicitas.pojtinger.com' | |
DID_URL="https://bsky.social/xrpc/com.atproto.identity.resolveHandle" | |
export DID=$(curl -G \ | |
--data-urlencode "handle=$HANDLE" \ |
Pedantic ADHD Guide to Kubenretes Provisioning
This is my guide for how to get Kubernetes provisioned using Azure, Google Cloud, or AWS using CLI tools. This will require setting up an account with local CLI tools. The goal of this is to quickly set up a disposable test clusters in minimalist way.
Some tools used here:
direnv
) - used to setup environment variables automaticallyThis is a tested example.
Not all clusters will have the metrics API, but this will function for ones that do.
The deployment uses the bitnami/kubectl image
.
It runs "get node metrics" in a shell while loop that sleeps.
The Deployment's Pod-template uses a ServiceAccount that is ClusterRoleBound to a ClusterRole permitting the list
and get
verbs for the Node
kind in the metrics.k8s.io
API group.
Here's how to reproduce:
// ~/docker/config.json | |
{ | |
"credsStore": "desktop", | |
"credHelpers": { | |
"docker.pkg.github.com": "gh", | |
"ghcr.io": "gh" | |
} | |
} |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | |
# SPDX-License-Identifier: Apache-2.0 | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: CloudFormation template that represents a request driven web service on AWS App Runner. | |
Parameters: | |
AppName: | |
Type: String | |
EnvName: | |
Type: String | |
WorkloadName: |