This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# check if browser accepts webp | |
RewriteCond %{HTTP_ACCEPT} image/webp | |
# check if file is jpg or png | |
RewriteCond %{REQUEST_FILENAME} (.*\.(jpe?g|png))$ | |
# check if corresponding webp file exists image.png -> image.webp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.3" | |
services: | |
transmission: | |
cap_add: | |
- NET_ADMIN | |
sysctls: | |
- net.ipv6.conf.all.disable_ipv6=0 | |
image: haugene/transmission-openvpn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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%.*}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |