Skip to content

Instantly share code, notes, and snippets.

View samos667's full-sized avatar
🦊

samos667

🦊
  • Apia
  • 01:34 (UTC +13:00)
View GitHub Profile
@samos667
samos667 / debug-ecdh.go
Created March 3, 2026 03:09
minimal go debug tool for piv ECDH
package main
import (
"crypto/ecdh"
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"fmt"
"os"
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"additionalObjects": {
"description": "additional resources to deploy. Those objects are templated.",
"items": {
"required": []
},
"title": "additionalObjects",
"type": "array"
@samos667
samos667 / gist:50f30c42a847f30757d02af736b01053
Created January 30, 2026 22:07
brotato log crash reroll shop
This file has been truncated, but you can view the full file.
Godot Engine v3.7.dev.custom_build.d93ab3c49 - https://godotengine.org
OpenGL ES 3.0 Renderer: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 21.1.7, DRM 3.64, 6.18.7-cachyos-lto)
Async. shader compilation: OFF
Brotato v1.1.14.0.beta-16
Steam initialization: {status:0, verbal:}
steam_is_online: True
steam_id: 76561198871113769
steam_is_owned: True
INFO ModLoader:Store: Options override feature tag "editor". does not apply, skipping.
@samos667
samos667 / flake.nix
Last active February 23, 2025 15:52
dev shell dflint installer
{
description = "Rust/Winit development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
---
# Source: talos-cloud-controller-manager/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: talos-cloud-controller-manager
labels:
helm.sh/chart: talos-cloud-controller-manager-0.4.4
app.kubernetes.io/name: talos-cloud-controller-manager
app.kubernetes.io/instance: talos-cloud-controller-manager
@samos667
samos667 / generate-ssh-fluxcd.yaml
Created December 21, 2024 23:01
Job to generate cluster fluxcd
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: ssh-key-creator
namespace: flux-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
@samos667
samos667 / grafana.json
Created July 3, 2024 15:16
grafana schema
{
"description": "Grafana is the Schema for the grafanas API",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
@samos667
samos667 / securitypolicy_v1alpha1.json
Created May 21, 2024 08:10
securitypolicy_v1alpha1.json
{
"description": "SecurityPolicy allows the user to configure various security settings for a\nGateway.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
@samos667
samos667 / gateway_v1.json
Created May 9, 2024 23:09
gateway_v1.json
{
"description": "Gateway represents an instance of a service-traffic handling infrastructure\nby binding Listeners to a set of IP addresses.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
@samos667
samos667 / tcproute_v1alpha2.json
Created May 9, 2024 23:06
tcproute_v1alpha2.json
{
"description": "TCPRoute provides a way to route TCP requests. When combined with a Gateway\nlistener, it can be used to forward connections on the port specified by the\nlistener to a set of backends specified by the TCPRoute.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"