#!/bin/bash
# Welcome interface
function show_welcome() {
echo "###############################################"
echo "# #"
echo "# Welcome to the Cloudflare IP Optimization Tool #"
echo
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
sudo mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.old |
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
rclone mount dav: /home/pc/server --buffer-size 64M --dir-cache-time 64h --vfs-cache-mode full --vfs-read-chunk-size 100M --vfs-read-chunk-size-limit 100M --vfs-cache-max-age 6h --allow-other --allow-non-empty --cache-dir /tmp/rclonca --daemon --daemon-timeout 5m |
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
rclone mount dav: /home/pc/server --allow-other --allow-non-empty --cache-dir /tmp/rclonca --no-modtime --multi-thread-streams 8 --vfs-read-chunk-size 256M --vfs-read-chunk-size-limit 600M --buffer-size 4096M --dir-cache-time 64h --vfs-cache-mode full --vfs-cache-max-age 6h --daemon --daemon-timeout 5m |
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
Set WshShell = CreateObject("WScript.Shell") | |
' Command to mount rclone remote | |
mountCommand = "rclone mount nas: J: --network-mode --vfs-cache-mode full" | |
' Run the command without displaying the console window | |
WshShell.Run mountCommand, 0, False |
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
# USE jellyfin-ffmpeg FOR replit.com | |
# pkgs.jellyfin-ffmpeg add into replit.nix | |
subprocess.run(['ffmpeg', '-hwaccel', 'auto', '-i', video_path, '-c:v', 'h264_amf', '-c:a', 'aac', '-f', 'hls', '-hls_playlist_type', 'event', '-hls_segment_type', 'mpegts', '-hls_segment_filename', os.path.join(hls_path, 'live_%d.ts'), '-hls_flags', 'delete_segments', '-hls_list_size', '3', os.path.join(hls_path, m3u8_file)]) |