Skip to content

Instantly share code, notes, and snippets.

from collections import abc
from typing import Any, Iterator, cast
import numpy as np
from numba import cuda # type: ignore
TField = tuple[str, Any] | tuple[str, Any, Any]
_EXCLUDED_SEQ_TYPES = (str, bytes, bytearray, memoryview)
@shaunc
shaunc / helm_install.txt
Created December 14, 2021 02:48
output from helm fission install
# helm --debug -n fission install fission fission-charts/fission-all --version v1.15.0 --set "routerServiceType=ClusterIP" >helm_install.txt
# stderr output
install.go:178: [debug] Original chart version: "v1.15.0"
install.go:199: [debug] CHART PATH: /Users/shauncutts/Library/Caches/helm/repository/fission-all-v1.15.0.tgz
client.go:128: [debug] creating 29 resource(s)
client.go:128: [debug] creating 1 resource(s)
client.go:528: [debug] Watching for changes to Job fission-fission-all-v1.15.0 with timeout of 5m0s
@shaunc
shaunc / gist:554a891a50d5b20152302d360155502c
Created December 4, 2021 15:50
terraform kubernetes_service debug log
2021-12-04T10:41:32.945-0500 [DEBUG] Adding temp file log sink: /var/folders/t8/bblr3p4171xd0ytx683pz7c80000gn/T/terraform-log386768255
2021-12-04T10:41:32.945-0500 [INFO] Terraform version: 1.0.11
2021-12-04T10:41:32.945-0500 [INFO] Go runtime version: go1.16.4
2021-12-04T10:41:32.945-0500 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2021-12-04T10:41:32.945-0500 [DEBUG] Attempting to open CLI config file: /Users/shauncutts/.terraformrc
2021-12-04T10:41:32.945-0500 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021-12-04T10:41:32.945-0500 [DEBUG] checking for credentials in "/Users/shauncutts/.terraform.d/plugins"
2021-12-04T10:41:32.945-0500 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021-12-04T10:41:32.945-0500 [DEBUG] will search for provider plugins in /Users/shauncutts/.terraform.d/plugins
2021-12-04T10:41:32.946-0500 [DEBUG] ignoring non-existing provider search directory /Users/shauncutts/Library/Application Support/io.terraform/plugins
[tool]
[tool.poetry]
authors = ["Shaun Cutts <shauncutts@factfiber.com>"]
name = "bt_features"
packages = [
{include = "bt_features", from = "src"}]
version = "0.1.0"
[[tool.poetry.source]]
name = "machinelearning"
@shaunc
shaunc / gist:9699236
Last active August 29, 2015 13:57
Sketch of proposal for Ember.JSONSerializer.serializeBelongsTo, handling async and polymorphic belongsTo, hasMany
# The idea is that (even for an async relationship) we have available either
# the related object, or the as-of-yet not unserialized reference to that
# object. In the latter case, we can use directly.
#
# This avoids possible generation of more server requests for related
# objects while saving a given object.
#
# Issues:
#
# 1) Potentially, the not-unserialized reference could be in a different