Skip to content

Instantly share code, notes, and snippets.

@tyzbit
tyzbit / missile-command.json
Last active April 30, 2025 00:51
Revolt Theme - Missile Command
{
"accent": "#8632bd",
"background": "#000000",
"foreground": "#06cb2e",
"block": "#231033",
"message-box": "#21252b",
"mention": "#3f005c",
"success": "#2D974D",
"warning": "#FEE75C",
"tooltip": "#000000",
@tyzbit
tyzbit / revolt-toml-to-json.sh
Created April 29, 2025 22:29
Convert Revolt TOML themes to JSON for importing
#!/usr/bin/env bash
set -euo pipefail
INPUT="${1:-theme.toml}"
# Bash 4+ for associative arrays
declare -A output defaults
# —————————————————————————————————————————————————————————————
# 1. Defaults
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/app-template-3.7.3/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app wanderer
namespace: flux-system
spec:
interval: 30m
releaseName: *app
@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",
{
// 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 / 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
@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 / 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 / feeds.opml
Created April 15, 2024 15:59
My RSS Feeds
<?xml version="1.0" encoding="UTF-8"?>
<opml version="2.0">
<head>
<title>Feeds</title>
</head>
<body>
<outline text="Anime" title="Anime">
<outline type="rss" title="Anime News Network - News" htmlUrl="https://www.animenewsnetwork.com/news/" text="Anime News Network - News" xmlUrl="https://www.animenewsnetwork.com/news/rss.xml?ann-edition=us" />
</outline>
<outline text="Crypto" title="Crypto">
@tyzbit
tyzbit / get-available-tech-tlds.sh
Created November 29, 2023 21:20
Simple scripts to check domain availability (from the list of cloudflare's TLDs https://www.cloudflare.com/tld-policies/)
#!/bin/bash
cloudflare_supported_tlds=(
academy
agency
app
blog
cam
camera
center
chat