Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
Source=/apps
Destination=/data/Files/Backups/home.pathar.tl
DestinationFilename="$(date '+%Y-%m-%d.%H-%m').tar.gz"
mkdir -p "${Destination}/Daily"
mkdir -p "${Destination}/Weekly"
mkdir -p "${Destination}/Monthly"
# Get the current month and weekday integer
#/bin/bash
/home/hts/zap2xml/./zap2xml -u johndoe@example.com -p password
cat /home/hts/zap2xml/xmltv.xml | socat - UNIX-CONNECT:/home/hts/.hts/tvheadend/epggrab/xmltv.sock
function disable_relevanssi_prevent_default_request($param1, $param2) {
global $wp;
if ( strpos( $wp->request, 'wp-json' ) === 0 ) {
remove_filter( 'posts_request', 'relevanssi_prevent_default_request' );
}
return $param1;