rclone
configured with remotes.- The mounting script is properly set up.
brew
package manager for installingsleepwatcher
.
vm.max_map_count=262144 |
async function streamToArrayBuffer(stream, streamSize) { | |
let result = new Uint8Array(streamSize); | |
let bytesRead = 0; | |
const reader = stream.getReader(); | |
while (true) { | |
const { | |
done, | |
value | |
} = await reader.read(); | |
if (done) { |
These scripts provide a simple way to backup and restore Odoo databases and their associated filestores.
backup.sh
: Creates a compressed backup of the Odoo database and filestore.restore.sh
: Restores an Odoo database and filestore from the created backup.
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.
- Retrieves a list of all user databases (excluding system templates) on the PostgreSQL server.
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.
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.
You should have root access to the PVE server to install this script.
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.
The tool consists of two parts:
- A bash script (
auto-updater
) that runsapt-get full-upgrade
,apt-get autoremove
, andapt-get autoclean
. - A Systemd service (
auto-updater.service
) that triggers the script on system shutdown.
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>go2rtc - Stream</title> | |
<style> | |
body { | |
background: black; | |
margin: 0; | |
padding: 0; |