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/python3 | |
import time | |
import config | |
import telebot | |
import sys | |
import os | |
from emoji import emojize | |
bottoken="<token>" | |
proxy = '<IP>:<PORT>' |
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 | |
# v. 2023.05.20 | |
MOUNTPOINTS=('/' '/home') | |
RETAINSNAPS=2 # snapshots in SNAPSHOTDIRNAME | |
BACKUPDIR='/mnt/backup' # optional, set SENDTOBACKUP=yes | |
SENDTOBACKUP=no # send to BACKUPDIR: yes or no | |
SNAPSHOTDIRNAME='.snapshots' |
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
// ==UserScript== | |
// @name kinopoisk comments rating | |
// @namespace https://gist.github.com/qiwichupa/4e843ab13db601ac43f138700c7a3241 | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js | |
// @include https://www.kinopoisk.ru/film/* | |
// @include https://www.kinopoisk.ru/series/* | |
// @run-at document-idle | |
// @grant GM_xmlhttpRequest | |
// @grant GM_addStyle | |
// @version 20240323.23 |
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 | |
# Checks if the gateway is not available and switches the active interface in bond. | |
# The script is made for zvirt node, designed for bond management via NetworkManager. | |
# | |
# v2024.04.05 | |
# | |
# Change your "bondname" and add script to crontab like: | |
# @reboot root /opt/bond_mon.sh | |
bondname=bond0 |
OlderNewer