This file contains 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 python | |
import os, shlex, subprocess | |
from tqdm import tqdm | |
# ddrescue directories instead of a whole drive | |
# creates directories recursively and ddrescues files into them | |
def fs (line): | |
import subprocess | |
PIPE = subprocess.PIPE |
This file contains 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 python | |
import json | |
import requests | |
import os | |
import time | |
# plugin for qBittorrent to filter out files in torrents by name or extension | |
# Enable web-interface. |
This file contains 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 python | |
import json | |
import requests | |
import os | |
# plugin for qBittorrent | |
# Enable web-interface. | |
# Check "Bypass authentication for localhost" |
This file contains 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 | |
# program-specific xbindkeys bindings | |
# there's a tool called `autokey`, which does this, but unlike xbindkeys, it doesn't catch mouse buttons | |
# doesn't interfere with main xbindkeys | |
# `pacman -S xbindkeys xdotool` | |
# `sleep 3 && cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm` |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
import sys, os, re, io | |
import requests, queue, threading | |
from PIL import Image | |
# Using google script seeks better quality copies of given images. | |
# Parses given dir with images, seeks similar with google and if there is a similar enough pic with bigger width, script replaces/adds it. |