This file contains hidden or 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
<# | |
.SYNOPSIS | |
PSApppDeployToolkit - This script performs the installation or uninstallation of an application(s). | |
.DESCRIPTION | |
- The script is provided as a template to perform an install or uninstall of an application(s). | |
- The script either performs an "Install" deployment type or an "Uninstall" deployment type. | |
- The install deployment type is broken down into 3 main sections/phases: Pre-Install, Install, and Post-Install. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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" |