Skip to content

Instantly share code, notes, and snippets.

{
"house": {
"detail": "The house is located on Suze Robertssonstraat 7",
"link": "https://www.google.com/maps/place/Suze+Robertsonstraat+7",
"color": "red: 255, green: 120, blue: 120, alpha: 255",
@metacoma
metacoma / json
Created October 20, 2024 15:06
kando_menus.json
{"menus": [{"shortcut": "Control+Space", "shortcutID": "kando_dynamic", "centered": true, "iconTheme": "material-symbols-rounded", "root": {"type": "submenu", "name": "Kubernetes", "icon": "deployed_code", "iconTheme": "material-symbols-rounded", "children": [{"type": "command", "data": {"command": "", "delayed": false}, "name": "eventing-controller-b974797d9-tts7k", "icon": "terminal", "iconTheme": "material-symbols-rounded"}, {"type": "command", "data": {"command": "", "delayed": false}, "name": "eventing-webhook-545c79cd88-qtf95", "icon": "terminal", "iconTheme": "material-symbols-rounded"}, {"type": "command", "data": {"command": "", "delayed": false}, "name": "imc-controller-686559bb47-5db9l", "icon": "terminal", "iconTheme": "material-symbols-rounded"}, {"type": "command", "data": {"command": "", "delayed": false}, "name": "imc-dispatcher-564778f4f-rcqgp", "icon": "terminal", "iconTheme": "material-symbols-rounded"}, {"type": "command", "data": {"command": "", "delayed": false}, "name": "jetstream-ch-co
@metacoma
metacoma / modelina.java
Created July 9, 2024 17:18
modelina java output
> start
> ../../node_modules/.bin/ts-node --cwd ../../ ./examples/$npm_package_config_example_name/index.ts
public class TmuxPaneIoDocument {
@NotNull
@Size(min=1)
private String input;
@NotNull
@metacoma
metacoma / py
Created July 9, 2024 13:12
modelina python serialize/desialize
class TmuxPaneIoDocument:
def __init__(self, input):
self._input = input.input
self._output = input.output
self._ps1 = input.ps1
@property
def input(self):
return self._input
@input.setter
$ kubectl get clusterrolebinding | grep admin-binding
provider-kubernetes-admin-binding                                                ClusterRole/cluster-admin                                                                    64m
kcl-function-admin-binding                                                       ClusterRole/cluster-admin                                                                    58m
provider-helm-admin-binding                                                      ClusterRole/cluster-admin                                                                    58m
crossplane-admin-binding                                                         ClusterRole/cluster-admin                                                                    3m37s
$ kubectl apply -f xrd-claim.yaml -f function-kcl.yaml
$ kubectl apply -f resource.yaml
$ kubectl get composite
NAME             SYNCED   READY   COMPOSITION   AGE
@metacoma
metacoma / docker-compose.yaml
Created April 11, 2024 09:35
wstunnel reverse proxy example
# Save this content to the file docker-compose.yml
# docker-compose pull
# docker-compose up
# tldr
# client1 ---.
# --- internet --- aws-host:8081 --- wstunnel reverse tunnel --- internet --- wstunnel --- websocket-application:8080
# client2 ---`
version: '3'
@metacoma
metacoma / sh
Created March 29, 2024 12:06
kanbanflow create task
#!/usr/bin/env bash
# example usage
# echo "Task description" | ./this_script.sh
set -x
. ./.env
description="$(cat | jq -Rs '.')"
planning_column=`curl https://kanbanflow.com/api/v1/board?apiToken=${API_TOKEN} | jq -r '.columns[] | select(.name == "In progress") | .uniqueId'`
echo ${planning_column}
@metacoma
metacoma / project.ncl
Created March 21, 2024 10:59
organist project nickel
let inputs = import "./nickel.lock.ncl" in
let organist = inputs.organist in
let k8s_namespace = import "./k8s/namespace.yaml" in
let knative_memory_broker = import "./k8s/knative/eventing/broker-memory.ncl" in
let knative_memory_broker_configmap = import "./k8s/knative/eventing/configmap.yml" in
let users = import "./users.yaml" in
let teams = {
alpha = {
name = "Alpha"
}
@metacoma
metacoma / gist:47d0da55908bd0de5a15fc1886a47f69
Created February 13, 2024 10:39
mindwm high level overview
direction: down
classes: {
laptop: {
style: {
stroke-width: 0
fill: "#44C7B1"
shadow: true
border-radius: 5
}
@metacoma
metacoma / gist:81776a1e70e5ac80d5410f682cdb581e
Created November 30, 2022 15:39
twitch_chat_logstash.yml
input {
file {
path => "/tmp/irssi_raw.log"
start_position => "end"
type => "irc"
tags => ["irc"]
}
http {
port => 31311 # default: 8080
tags => ["http"]