Skip to content

Instantly share code, notes, and snippets.

@tomeko
tomeko / MainWindow.axaml.cs
Created April 22, 2023 17:57
Fuzzy select fill simple (Avalonia UI)
using Avalonia.Controls;
using Avalonia.Media.Imaging;
using System.Collections.Generic;
using System;
using System.IO;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Avalonia;
using Avalonia.Media;
using Avalonia.Platform;
@tomeko
tomeko / comskip-jellyfin-setup.md
Last active October 26, 2024 23:40
Comskip + Jellyfin setup guide (Ubuntu 22.04)

Setting up Comskip with Jellyfin (non docker install)

This just got way easier as comskip seems to be in apt packages now. The only thing you need to do is slightly modify the script in jellyfin-dvr-comskip because it assumes a docker install

1. Install comskip

sudo apt install comskip

2. Get and update jellyfin-dvr-comskip

@tomeko
tomeko / trailer_dl.py
Last active January 7, 2024 21:51
Download youtube movie trailers via a single file or batch download (for a directory of movies). Single file mode use case: run a trigger from jellyfin when content added
# trailer_dl.py
#
# Required packages: yt_dlp, youtubesearchpython
# Python: 3.8.10
#
# arguments:
# python trailer_dl.py <movie_file_or_directory>
# If a directory is given, it will find all mp4's one path deep. For example /my/media/movies (which contains /my/media/movie1/movie1 (2021).mp4, /my/media/movie2/movie2 (2020).mp4, etc.)
# If a file is given (.mp4), it will only get the trailer for that movie
# Either way, it makes an extras folder (works for jellyfin) in that particular movies directory and downloads the trailer there
@tomeko
tomeko / debug.snippet
Created March 12, 2020 22:44
VS C# Snippets
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Debug Writeline</Title>
<Description>Inserts debug writeline with interp. string</Description>
<Shortcut>dline</Shortcut>
</Header>
<Snippet>
<Code Language="CSharp">