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/python3 | |
import time | |
import config | |
import telebot | |
import sys | |
import os | |
from emoji import emojize | |
bottoken="<token>" | |
proxy = '<IP>:<PORT>' |
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
#!/bin/bash | |
# v. 2023.06.29 | |
MOUNTPOINTS=('/home' '/') | |
SNAPSHOTDIRNAME='.snapshots' | |
# snapshots in SNAPSHOTDIRNAME | |
RETAINSNAPS=2 | |
# send to BACKUPDIR: yes or no | |
SENDTOBACKUP=no |
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
// ==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 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
#!/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 |
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
// ==UserScript== | |
// @name JoyReactor better mobile link | |
// @description Добавляет в ссылку на мобильную версию полный адрес текущей страницы | |
// @icon http://joyreactor.cc/favicon.ico | |
// @namespace https://gist.github.com/qiwichupa/6a81db04507c850e27e7e44bbdd04066 | |
// @homepage https://greasyfork.org/ru/scripts/499146-joyreactor-better-mobile-link | |
// @author qiwichupa | |
// @version 2024.06.30.14 | |
// @license Public Domain | |
// @include https://*.reactor.cc/* |
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
// ==UserScript== | |
// @name JoyReactor Onion Links | |
// @description Ссылка на onion-зеркало в шапке и под постами | |
// @icon http://joyreactor.cc/favicon.ico | |
// @namespace https://gist.github.com/qiwichupa/57881a7f962b8d626cdc748a97cb1f19 | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js | |
// @include https://*.reactor.cc/* | |
// @include https://joyreactor.cc/* | |
// @run-at document-idle | |
// @grant GM_xmlhttpRequest |
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
<?php | |
class af_joyreactor_url2main extends Plugin { | |
private $host; | |
function about() { | |
return array(1.0, | |
"Исправление ссылок на статьи сайта joyreactor.cc", | |
"qiwichupa"); | |
} |
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 | |
# based on omv-btrfs-dfree from openmediavault | |
import os | |
import re | |
import subprocess | |
import sys | |
from systemd import journal | |
CUSTOMRATIO = 0 # set ratio of your btrfs volume if samba user is not root (smb.conf: force user = root) | |
LOGGING = 0 # 0 - off, 1 - on. journalctl -t 'SMBUS' |
OlderNewer