Skip to content

Instantly share code, notes, and snippets.

Windows Registry Editor Version 5.00
; MajorGeeks.Com
; https://www.majorgeeks.com/content/page/how_to_add_or_remove_maximum_processor_frequency.html
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\54533251-82be-4824-96c1-47b60b740d00\75b0ae3f-bce0-45a7-8c89-c9611c25e100]
"Attributes"=dword:00000002
#!/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.