This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "plantuml.export", | |
"command": "${command:plantuml.exportCurrent}" | |
}, | |
{ | |
"label": "generate diagrams", | |
"type": "shell", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DIAGRAMS:=$(shell ls *.py) | |
all: clean $(DIAGRAMS) | |
.PHONY: | |
clean: | |
rm -f *.{png,jpg} | |
.PHONY: $(DIAGRAMS) | |
$(DIAGRAMS): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use ImageMagick convert | |
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf | |
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ExUnit.start() | |
defmodule TypeSafeish do | |
defmacro func({:"::", _metadata, func_head}, do: block) do | |
[method_spec, return_spec] = func_head | |
{func_name, _metadata, [args_specs]} = method_spec | |
args = for {arg, _spec} <- args_specs, do: Macro.var(arg, nil) | |
specs = for {_arg, {spec, _metadata, _addl}} <- args_specs, do: Macro.var(spec, nil) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "gpu" { | |
description = "Enable and configure node GPUs" | |
type = object({ | |
type = string | |
count = number | |
}) | |
default = null | |
# or... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Resume | |
apiVersion: fancy.coryodaniel.com/v1alpha1 | |
metadata: | |
name: cory-odaniel | |
namespace: engineers | |
labels: {} | |
annotations: {} | |
spec: {} | |
status: WIP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
customresourcedefinition.apiextensions.k8s.io/applications.app.k8s.io created | |
serviceaccount/application-controller-service-account created | |
clusterrole.rbac.authorization.k8s.io/application-controller-cluster-role created | |
clusterrolebinding.rbac.authorization.k8s.io/application-controller-cluster-role-binding created | |
configmap/application-controller-parameters created | |
service/application-controller-service created | |
statefulset.apps/application-controller-stateful-set created | |
application.app.k8s.io/kubeflow created | |
customresourcedefinition.apiextensions.k8s.io/certificaterequests.cert-manager.io created | |
customresourcedefinition.apiextensions.k8s.io/certificates.cert-manager.io created |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "kubernetes" { | |
config_context = "docker-desktop" | |
} | |
resource "kubernetes_job" "demo" { | |
metadata { | |
generate_name = "demo-" | |
} | |
spec { | |
template { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAMESPACE=monitoring | |
kubectl proxy & | |
kubectl get namespace $NAMESPACE -o json |jq '.spec = {"finalizers":[]}' >temp.json | |
curl -k -H "Content-Type: application/json" -X PUT --data-binary @temp.json 127.0.0.1:8001/api/v1/namespaces/$NAMESPACE/finalize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
[ | |
{ | |
"op": "add", | |
"path": "/spec/template/spec/containers/0/args/-", | |
"value": "--dns01-self-check-nameservers" | |
}, | |
{ | |
"op": "add", | |
"path": "/spec/template/spec/containers/0/args/-", |