Skip to content

Instantly share code, notes, and snippets.

@tyzbit
tyzbit / index.html
Created August 10, 2024 15:38
Audit Log + comment mockup
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Audit Log and Comments</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
@tyzbit
tyzbit / whatwebsitescanibuyfor.sh
Created August 11, 2024 21:51
script to check a domain name against all cloudflare TLDs
#!/bin/bash
cloudflare_supported_tlds=(
"academy"
"accountant"
"accountants"
"actor"
"agency"
"apartments"
"app"
"associates"
@tyzbit
tyzbit / find-unused-helm-repos.sh
Created September 15, 2024 21:28
Find unused Flux HelmRepository objects
#!/bin/bash
# List all HelmRepository names
repositories=$(kubectl get helmrepositories -A -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}')
# List all HelmRelease sources (HelmRepository names they reference)
releases=$(kubectl get helmreleases -A -o jsonpath='{range .items[*]}{.spec.chart.spec.sourceRef.name}{"\n"}{end}')
# Find HelmRepositories not used by HelmReleases
for repo in $repositories; do
if ! echo "$releases" | grep -q "$repo"; then
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
@tyzbit
tyzbit / flow.json
Created April 1, 2025 01:52
any -> x265 Tdarr Flow
{
"_id": "68lTwTyjv",
"name": "Transcode to HEVC to Save Space",
"description": "Transcode to HEVC to Save Space",
"tags": "",
"flowPlugins": [
{
"name": "This isn't a TV show",
"sourceRepo": "Community",
"pluginName": "setFlowVariable",