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
| from deluge._libtorrent import lt | |
| from deluge.core.core import Core | |
| from deluge.core.rpcserver import RPCServer | |
| from deluge.core.torrentmanager import TorrentState | |
| """ | |
| Recovers a crashed Deluge session when the corresponding libtorrent fastresume file still exists, | |
| because it contains all the necessary metadata. As a bonus you don't need to recheck terabytes of data. | |
| Make sure to stop any other running instances to avoid file conflicts. | |
| """ |
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
| from sys import argv | |
| from xml.etree import ElementTree | |
| from zipfile import ZipFile | |
| import re | |
| def count(filename): | |
| ext = filename.split('.')[-1] | |
| if ext == 'pptx' or ext == 'docx': | |
| with ZipFile(filename) as zip: | |
| meta = zip.read('docProps/app.xml') |
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 bash | |
| syspath="/cygdrive/c/Users/Simon/Desktop/Tools/Nirsoft Launcher/SysInternals/" | |
| pdcpath="/cygdrive/c/Program Files (x86)/Locklizard Safeguard PDF Viewer/" | |
| IFS=$'\n' | |
| for file in $(ls *.pdc); do | |
| echo $file | |
| file=$(echo $file | sed 's/\(.*\)\.pdc/\1/') | |
| "${pdcpath}PDCViewer.exe" "$file.pdc" & | |
| sleep 6 | |
| pid=$("${syspath}/pslist" | findstr PDCViewer | tr -s ' ' | cut -f2 -d' ' | tail -n1) |