Skip to content

Instantly share code, notes, and snippets.

#!/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
#! /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.
#! /usr/bin/env python
import json
import requests
import os
# plugin for qBittorrent
# Enable web-interface.
# Check "Bypass authentication for localhost"
#!/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`
@oltodosel
oltodosel / better_pics_from_google.py
Created February 22, 2015 20:49
Using google script seeks better quality copies of given images.
#!/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.