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
#!/bin/bash | |
channel="https://ntfy.sh/YOURTOPICHERE" | |
sensors=( | |
"nvme-pci-0900:Composite" | |
# Add as many sensors as you want here | |
) | |
threshold=55 |
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
#!/usr/bin/env bash | |
################ Description: ################### | |
# This script will disable all opt-out under | |
# Ubuntu 22.04 (Codename: Jammy Jellyfish). | |
# At first the telemetry domains will be resolved | |
# to the local host and second all telemetry services | |
# will be removed from the system. | |
# The following work has a system-wide effect not just |
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
""" | |
IMPORT THIS IN YOUR CODE LIKE THIS: | |
from logging_config import logger | |
logger.info("It works!") | |
""" | |
import logging | |
# Create a named logger | |
logger = logging.getLogger("My_Logger") |