Skip to content

Instantly share code, notes, and snippets.

alias: CardFlix Automation
description: ""
triggers:
- event_type: tag_scanned
trigger: event
conditions: []
actions:
- variables:
SCANNER_MAPPING:
abaa7633291b99e6ae1158896788f4d0: media_player.living_room_apple_tv
esphome:
name: cardflix-scanner
friendly_name: CardFlix
min_version: 2024.11.0
name_add_mac_suffix: false
esp8266:
board: d1_mini
@Udinic
Udinic / gist:f94bd7c828e205ce936443ce48d94f4c
Created June 21, 2025 17:04
MKV video repackaging tool to include only English audio/subtitles tracks
#!/usr/bin/env python3
import subprocess
import re
import sys
import os
import argparse
from pathlib import Path
from dataclasses import dataclass
from typing import List, Optional
@Udinic
Udinic / androidtv-tester
Created January 19, 2021 17:44
Tests a few automations for the Android TV
#!/bin/bash
# Usage:
# ./androidtv-tester <TV IP:5555> <option>
# Example:
# ./androidtv-tester 192.168.86.43:5555 2
adb_connect() {
adb connect $1
}
@Udinic
Udinic / tv_shows_scraper.py
Created July 22, 2013 01:35
This script scraps Wikipedia'a page for all American TV shows, and output the titles and the years in 2 separate files, surrounded with <item> tags. Written for the sync adapter sample app introduced in my blog: http://www.udinic.com
#!/usr/bin/env python
"""
tv_shows_scraper.py
Creates 2 files, TV shows titles and year, surrounded with <item> tags.
Usage: python tv_show_scraper.py
"""
@Udinic
Udinic / TasksContract.java
Last active October 12, 2018 15:34
A contract class to work with Any.do's Content Provider. A full guide is available at http://tech.any.do/content-provider-for-any-do/
/**
* This class provides the URI and const values to work with Any.do's Content Provider.
*
* A guide is available on http://tech.any.do/content-provider-for-any-do/
*/
public class TasksContract {
public static final Uri TASKS_URI = Uri.parse("content://com.anydo.provider/tasks");
public static final Uri FOLDERS_URI = Uri.parse("content://com.anydo.provider/folders");
public static final String PERMISSION_READ = "com.anydo.provider.permission.READ_ANYDO_TASKS";