scripts
scripts copied to clipboard
My random scripts
scripts
Cross-platform
checksum_file.py
Print the checksum of a file, calculated using common, standard algorithms.
expand_every_cloudf.py
Traverse a directory recursively until no cloudf placeholders left. (This might only work on Windows. TODO try on Linux.)
Linux
build_kodi_waipu_addon_on_rpi_osmc.sh
An automated way of building the Waipu.tv PVR plugin for Kodi on a Raspberry Pi OSMC. By default it builds the addon for Kodi Leia, but another version can be specified as an argument too.
transmission_re_add_missing_torrents.sh
Helper script to alleviate the pain that this transmission issue causes: https://github.com/transmission/transmission/issues/83
Windows
removeGhosts.ps1
I found the original version of this script here. Thank you for TrententTye and Alexander Boersch for their excellent work!
In this repo I publish a slightly improved version of this script which adds:
- -narrowByClass,
- -narrowByFriendlyName,
- -force, making the default run asking for confirmation,
- and the ability to apply the optional filters for the non-destructive, listing runs as well.
sync_odrive.ps1
Sync all your cloud files using odrive cli, instead of syncing them one-by-one. File syncing is parallelised (use the -JobCount parameter) and there's a progress bar too.
It uses expand_every_cloudf.py to expand every folder before it starts the syncing. This way the syncing can run once without missing any file.
cloud_sync.ps1
Thank you for Daiyan Yingyu for publishing the original version of the script.
This script scans a directory on a phone and checks whether every file can be found in another directory or any of its subdirectories (recursively). If a file is missing, it gets copied over to a specified directory, which may or may not be the same as where the files are looked for. The script finishes with a summary of how many files were copied from how many it found.
To make it easy to call the script you can create a little config file. This way the only parameter you need to specify is your phone's "nickname". See cloud_sync_config.example.ps1.
This is handy if you have a local sync of your cloud drive and want to make sure every file is backed up before freeing up space on your device. The OneDrive android app has a feature that can remove the uploaded files, but for instance mega does not have it yet. I couldn't really find any other reliable way to know that all the files have been indeed uploaded.