[-] fireshell@kbin.earth 2 points 3 weeks ago

I use Wallabag in a similar way.

[-] fireshell@kbin.earth 1 points 2 months ago

negative development is also development.

[-] fireshell@kbin.earth 0 points 4 months ago

Ubuntu has taken another wrong turn. She's going left and right like a prodigal daughter. And no one will be able to talk sense into her until she's had her share of bumps.

[-] fireshell@kbin.earth -1 points 5 months ago

I got a website from them MastodonShare

[-] fireshell@kbin.earth 1 points 6 months ago

sshch - SSH connection and aliases manager with curses and command line interface.

[-] fireshell@kbin.earth -4 points 11 months ago

Script for monitoring disk space in Linux

The script below is designed to monitor disk space usage on a specified server partition. Configurable parameters include the maximum allowable percentage of disk space usage (MAX), the e-mail address to receive alerts (EMAIL) and the target partition (PARTITION).

The script uses the df command to collect disk usage information and sends email alerts if the current usage exceeds the specified threshold

#!/bin/bash
# Script: ./df_guard.sh [config_file]

# Set the maximum allowed disk space usage percentage
MAX=90

# Set the email address to receive alerts
EMAIL=user@example.com

# Set the partition to monitor (change accordingly, e.g., /dev/sda1)
PARTITION=/dev/sda1

# Get the current disk usage percentage and related information
USAGE_INFO=$(df -h "$PARTITION" | awk 'NR==2 {print $5, $1, $2, $3, $4}' | tr '\n' ' ')
USAGE=$(echo "$USAGE_INFO" | awk '{print int($1)}') # Remove the percentage sign

if [ "$USAGE" -gt "$MAX" ]; then
# Send an email alert with detailed disk usage information
echo -e "Warning: Disk space usage on $PARTITION is $USAGE%.\n\nDisk Usage Information:\n$USAGE_INFO" | \
mail -s "Disk Space Alert on $HOSTNAME" "$EMAIL"
fi

Installation

sudo install -m 0755 df_guard.sh /usr/local/bin/df_guard.sh

Make the script executable:

sudo chmod +x /usr/local/bin/df_guard.sh

Launch examples

  • Every 15 minutes.

In crontab (root)

*/15 * * * * * /usr/local/bin/df_guard.sh
[-] fireshell@kbin.earth 1 points 1 year ago

Normally postpone to read in the e-book this is Readeck, Wallabag and LinkWarden (taste and color), I have Self-Hosted Wallabag through KOReader.

[-] fireshell@kbin.earth 1 points 1 year ago

But it's still a little better than Hilka Clinton's under-bed email server, or Hunter Biden's macpuke with pictures of his hookers that he just dumped in the middle of nowhere. Anyway, there's always been strife, which suggests that it's probably not accidental.

view more: ‹ prev next ›

fireshell

0 post score
0 comment score
joined 1 year ago