You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cleans up duplicate go2rtc ffmpeg ingestion processes
ffmpeg Duplicate Process Terminator
This script checks for duplicate ffmpeg processes running on the system and sends a SIGHUP signal to the unwanted ones to terminate them. If a process does not terminate after a certain timeout, the script sends a SIGKILL signal to force the termination.
The script lists out the processes using ps -aux command and identifies the ffmpeg processes. The script then groups the processes by their stream id (the streams are initiated to create/encode video feeds) and send termination signals to any duplicate processes.
Usage
The script can be used with optional command-line argument -t or --timeout which specifies the timeout interval in seconds after which a SIGKILL signal is sent if the process is still running after receiving a SIGHUP signal. If no timeout is specified, it defaults to 15 seconds or uses the environment variable FFMPEG_MONITOR_HUP_TIMEOUT if set.
This script identifies and removes invalid iSCSI targets from a Proxmox VE (PVE) server. It obtains the IPv4/IPv6 addresses of the iSCSI servers, compares them against the IP addresses of iSCSI targets on the PVE server, and removes any invalid targets.
This script is important for maintaining the efficiency and health of iSCSI links in a PVE environment, thereby ensuring optimum storage performance.
Installation
You should have root access to the PVE server to install this script.
A script and service to automatically upgrade on shutdown for Debian / Ubuntu
Auto-Updater for Debian/Ubuntu
The auto-updater is a tool designed to perform an unattended and full system upgrade, including package cleanup, upon system shutdown. It ensures that your Debian/Ubuntu system is upgraded regularly, without manual intervention.
Overview
The tool consists of two parts:
A bash script (auto-updater) that runs apt-get full-upgrade, apt-get autoremove, and apt-get autoclean.
A Systemd service (auto-updater.service) that triggers the script on system shutdown.
Rebuild and Refresh Collation Version for PostgreSQL
PostgreSQL Collation and Reindexing Utility
Overview
The reindex_and_refresh_collation.sh script is created to automate the process of reindexing tables and refreshing the collation version for all user databases in a PostgreSQL server. This utility is particularly useful when you've updated the locale or collation libraries on the system where PostgreSQL is installed, as these updates could cause mismatches between the databases' expected collation version and the operating system's provided version.
What It Does
Retrieves a list of all user databases (excluding system templates) on the PostgreSQL server.
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
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
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