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' |
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
| #!/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
| #!/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
| #!/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
| #!/usr/bin/env python3 | |
| ''' | |
| script to automatically disable the bluetooth gamepad when there is no activity for a specified time. | |
| Written for Steam and SteamDeck (requires "/dev/input/js0" device). | |
| Change maxidletime and devid variables. | |
| Мake the script executable and add it to autorun in desktop mode. | |
| ''' | |
| import struct | |
| from datetime import datetime as dt |
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
| BASE: | |
| Share - System Menu; | |
| Options - Map; | |
| ✖ - Jump; | |
| R1 (hold) - Run; | |
| R3 - Interact; | |
| ● (hold) - Close; | |
| L1 (hold) - Sneak; | |
| Down - Mount; |
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 YouTube RSS Feed (qiwichupa fork) | |
| // @namespace https://gist.github.com/qiwichupa/733994d90c7b6ceaaf69067584cd6017 | |
| // @homepage https://greasyfork.org/ru/scripts/484129-youtube-rss-feed-qiwichupa-fork | |
| // @author Doodles + qiwichupa | |
| // @version 20240107.1542 | |
| // @description Adds an RSS feed button to YouTube channels next to the subscribe button | |
| // @icon http://i.imgur.com/Ty5HNbT.png | |
| // @icon64 http://i.imgur.com/1FfVvNr.png | |
| // @match *://www.youtube.com/* |
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 | |
| # Usage: ./zabbix_check_availability.sh my-server.local | |
| # | |
| # If you run it as root: | |
| # You need to have "zabbix_get" executable binary on each proxy | |
| # in the /root dir, and set passwordless ssh authentication. | |
| # v. 20240118 | |
| # https://gist.github.com/qiwichupa/39e47db270a070e1dafa2eb14033d1c5 | |
| PROXYLIST=(zabbix-proxy1.local |
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.202311301520 | |
| # gen vpn connections menu | |
| unset options i | |
| while IFS= read -r f; do | |
| options[i++]="$f" | |
| done < <(nmcli --fields TYPE,NAME connection show | grep vpn | awk '{for (i=2; i<NF; i++) printf $i " "; print $NF}' ) | |
| select opt in "${options[@]}" ; do |
NewerOlder