Skip to content

Instantly share code, notes, and snippets.

@JasperE84
JasperE84 / BarcodeService.cs
Created Feb 17, 2019
An UWP PointOfService class for keeping Bluetooth barcode scanners connected
View BarcodeService.cs
namespace MyApp.Services.BarcodeServices
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Windows.Devices.Enumeration;
using Windows.Devices.PointOfService;
using Windows.UI.Xaml;
using static MyApp.Helpers.BarcodeHelpers;
@JasperE84
JasperE84 / comskip-pd.sh
Created Oct 28, 2017
TVHeadend post-remove script for automatic removal of edl, log and logo files as generated by comskip
View comskip-pd.sh
#!/bin/bash
#
# TVHeadend post-remove script to remove log/edl/logo.txt files (generated by comskip) from recording dir
# TVHeadend config: Configuration -> Recording -> Select profile -> Add the following in setting "Post-remove command": /home/USER/PATH/comskip-pd.sh "%f"
#
INPUTVIDEO="$1" # Full path to recording, i.e. /home/user/Videos/News.ts
FILENAME=$(basename "$INPUTVIDEO")
BASENAME="${FILENAME%.*}"
@JasperE84
JasperE84 / comskip-pp.sh
Created Oct 28, 2017
TVHeadend postprocessor script for comskip
View comskip-pp.sh
#!/bin/bash
#
# This is a postprocessor script to run comskip on a recording and optionally keep a logfile
# TVHeadend config: Configuration -> Recording -> Select profile -> Add the following in setting "Post-processor command": /home/USER/PATH/comskip-pp.sh "%f"
# Get comskip for linux from: https://github.com/erikkaashoek/Comskip
#
# Comskip and script paths
COMSKIPPATH="/home/hts/comskip/Comskip/comskip"
COMSKIPINI="/home/hts/comskip/comskip.ini"
You can’t perform that action at this time.