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
| # This example uses M2M-100 models converted to the CTranslate2 format. | |
| # Download CTranslate2 models: | |
| # • M2M-100 418M-parameter model: https://bit.ly/33fM1AO | |
| # • M2M-100 1.2B-parameter model: https://bit.ly/3GYiaed | |
| import ctranslate2 | |
| import sentencepiece as spm |
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
| #!/usr/bin/env python3 | |
| import plotext as plt | |
| from subprocess import check_output | |
| import psutil | |
| import time | |
| CMD = "sensors amdgpu-pci-0500 | grep PPT | grep -oP '(?<=cap =) *(.?\d+)'" | |
| TARGET_TEMP = 83 | |
| CRITICAL_TEMP = 92 | |
| CAP_MIN = 2 |
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
| #!/usr/bin/env python3 | |
| import plotext as plt | |
| from subprocess import check_output | |
| import psutil | |
| import time | |
| import math | |
| CMD = "sensors amdgpu-pci-0500 | grep PPT | grep -oP '(?<=cap =) *(.?\d+)'" | |
| TARGET_TEMP_MAX = 91 | |
| TARGET_TEMP_MIN = 87 |
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
| #!/usr/bin/env bash | |
| USERS_DIR="/home" | |
| SERVICES_DIR="/etc/sv" | |
| RUNIT_DIR="/var/service" | |
| create_tmux_service() { | |
| user="$1" | |
| service_name="tmux-${user}" | |
| service_dir="${SERVICES_DIR}/${service_name}" |
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
| #!/usr/bin/env bash | |
| echo -e "\033[0;32mПароль в keepass под именем restic\033[0m" | |
| # Each element is the exclusion path | |
| excludes=( | |
| "$HOME/.local" # Local configuration and application files | |
| "$HOME/.cache" # Temporary cache files | |
| "$HOME/Downloads" # Downloads folder |
OlderNewer