Skip to content

Instantly share code, notes, and snippets.

Avatar

Oxan van Leeuwen oxan

View GitHub Profile
@oxan
oxan / module.yaml
Last active Mar 4, 2021
Stream server (serial-to-wifi bridge) for ESPHome
View module.yaml
esphome:
# ...
includes:
- stream_server.h
- stream_server.cpp
uart:
id: uart_bus
# ...
@oxan
oxan / Embedded.php
Created Jun 3, 2018
Override API platform embedding decisions
View Embedded.php
<?php
// src/Serializer/Embedding/Embedded.php
namespace App\Serializer\Embedding;
/**
* @Annotation
* @Target({"PROPERTY", "METHOD"})
*/
class Embedded
@oxan
oxan / dsfextract.sh
Last active Dec 17, 2015
DirectShowFilters extraction code
View dsfextract.sh
#!/bin/bash
cd MediaPortal-1
test -d .git || exit 1
# get a unique list of all files in the root and in the mediaportal/ and TvEngine3/ directory
tmp=$(mktemp)
git rev-list HEAD | xargs -n1 -I%rev -- git ls-tree --name-only --full-name %rev ./ mediaportal/ TvEngine3/ > $tmp
# remove everything but the (TvEngine3|mediaportal)/Filters and DirectShowFilters directory
@oxan
oxan / gist:3795542
Created Sep 27, 2012
MPExtended StreamingProfiles.xml
View gist:3795542
<?xml version="1.0" encoding="utf-8"?>
<StreamingProfiles xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://mpextended.github.com/schema/config/StreamingProfiles/1">
<!--
WARNING: Please note that changes to this file will be overwritten on a MPExtended update.
-->
<FFMpegPath>%mpextended-streaming%\ffmpeg.exe</FFMpegPath>
<Transcoders>
<!-- Direct profile -->
<TranscoderProfile>