Skip to content

Instantly share code, notes, and snippets.

View sdebruyn's full-sized avatar

Sam Debruyn sdebruyn

View GitHub Profile
@sdebruyn
sdebruyn / TNDC.xml
Last active December 31, 2015 05:59
Serviio Telenet Yelo TV renderer profile
<Profile id="TNDC" name="Telenet Yelo TV" extendsProfileId="1">
<!-- http://klantenservice.telenet.be/content/welke-formaten-van-foto-s-filmpjes-en-muziek-kan-ik-via-yelo-tv-delen-op-mijn-tv -->
<Detection>
<UPnPSearch>
<Manufacturer>.*smosys.*</Manufacturer>
</UPnPSearch>
</Detection>
<Transcoding>
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="aac" >
<Matches container="matroska" />
@sdebruyn
sdebruyn / TNDC.xml
Created July 21, 2014 16:18
Plex Telenet Yelo TV renderer profile
<?xml version="1.0" encoding="utf-8"?>
<Clients>
<Client name="YeloTV">
<Identification>
<Header name="FriendlyName.dlna.org" substring="5810CX" />
<Header name="User-Agent" substring="L21XTLNDGRD/v4.11-rc-356-g90f6124"/>
<Header name="User-Agent" substring="L21XTLNDGRD"/>
</Identification>
<TranscodeTargets>
<VideoProfile container="mpegts" codec="h264" audioCodec="aac">
@sdebruyn
sdebruyn / keybase.md
Created April 14, 2015 17:41
keybase.md

Keybase proof

I hereby claim:

  • I am SamuelDebruyn on github.
  • I am samueldebruyn (https://keybase.io/samueldebruyn) on keybase.
  • I have a public key whose fingerprint is CBB9 7EE0 E5DE FA79 C77D BACF AF3C BD7F 8A64 C620

To claim this, I am signing this object:

@sdebruyn
sdebruyn / cloudSettings
Last active February 12, 2021 07:59
VS Code settings & extensions
{"lastUpload":"2021-02-12T07:59:52.160Z","extensionVersion":"v3.4.3"}
@sdebruyn
sdebruyn / profiles.json
Created March 7, 2020 15:20
Windows Terminal settings
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
"profiles":
@sdebruyn
sdebruyn / WSL.zshrc
Last active May 14, 2020 07:37
ZSH settings
export ZSH="$HOME/.oh-my-zsh"
ENABLE_CORRECTION="true"
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=10"
export EDITOR='code -w'
export TERM="xterm-256color"
SPACESHIP_BATTERY_THRESHOLD=20
source /usr/share/zsh-antigen/antigen.zsh
@sdebruyn
sdebruyn / taintall.sh
Last active May 6, 2020 12:21
taint all terraform resources
#!/bin/bash
set -e
for resource in `terraform show | grep "# " | grep -v "tainted" | grep -v "data\." | tr -d ":" | tr -d "# "`; do
echo "Tainting ${resource}"
terraform taint $resource
done
@sdebruyn
sdebruyn / customer_values.sql
Created August 11, 2023 14:35
dbt incremental model with hard deletes
{{
config(
materialized='incremental',
incremental_strategy='merge',
unique_key='customer_id',
post_hook="delete from {{ this }} where _is_deleted = 1"
)
}}
with orders as (
@sdebruyn
sdebruyn / .zshrc
Created January 10, 2024 11:44
battery function
battery() {
if !ioreg > /dev/null 2>&1; then
echo "ioreg not found. Exiting."
return 1
fi
_ioreg=`ioreg -l`
_profile=`system_profiler SPPowerDataType`