Skip to content

Instantly share code, notes, and snippets.

@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
@tyzbit
tyzbit / custom-config.conf
Created August 22, 2023 20:31
Setting cache-max-negative-ttl for Unbound on OPNSense 21.7 and later
cache-max-negative-ttl: 1
@tyzbit
tyzbit / json
Created August 17, 2023 19:36
n8n Plex to NewRelic workflow
{
"meta": {
"instanceId": "aa9435bb3ce60270561861142bd6fad2007ec1f2f21b7e4ae8cd074b32d19840"
},
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
@tyzbit
tyzbit / [email protected]
Created July 10, 2023 20:40
Docker-Compose Systemd script
[Unit]
Description=%i service
Requires=docker.service
After=docker.service
[Service]
Restart=always
User=root
Group=docker
WorkingDirectory=/services/%i