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 | |
| """ | |
| Google Calendar Notifier | |
| This script periodically checks Google Calendar for events with reminders and displays | |
| desktop notifications using notify-send. It is designed to run via systemd timer. | |
| HOW IT WORKS: | |
| - Systemd timer runs this script periodically (e.g., every minute) | |
| - Script queries Google Calendar API for events with reminders due within next 5 minutes |
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 sys | |
| import json | |
| import subprocess | |
| import shutil | |
| import os | |
| import re | |
| import threading |
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 -xeE | |
| set -o pipefail | |
| # Idea: archive files or folders (tar), next encrypt archives (7z), push into GDrive (rclone). | |
| # Prerequisits: | |
| # - (usually already here) install 7za/7z - `sudo apt-get install p7zip-full`/`brew install p7zip` | |
| # If executable has another name then need to see in script how it is used and correct. | |
| # - install rclone and setup - https://ostechnix.com/install-rclone-in-linux/ or `brew install rclone` | |
| # https://ostechnix.com/mount-google-drive-using-rclone-in-linux/ and don't set password for the configuration | |
| # - set right values into variables (upper-cased, right below description). |
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 os | |
| import bencode | |
| import re | |
| import sys | |
| # Inspired by https://github.com/ctminime/QB_Migrate_to_Linux | |
| # Need `pip3 install bencode.py`. | |
| # Run in folder like "/home/user/.local/share/data/qBittorrent/BT_backup/" (configured in qBitTorrent). | |
| # Takes 2 parameters: |