Skip to content

Instantly share code, notes, and snippets.

@patch-werk
patch-werk / ascimg.py
Last active August 29, 2015 13:57
Takes a photo and coverts it to a ascii image. Requires numpy and PIL libraries.
import Image
import numpy as n
#open image and convert to greyscale
img = Image.open('photo.png').convert('LA')
#get dimensions and scale them
w,h = img.size
# change to 4 and 7, respectivly to make smaller image
w /=2
h /=4
@patch-werk
patch-werk / walletbrute.py
Created March 10, 2014 22:41
A laughably slow CPU based approach to www.crackthewallet.com contests. Requires this library https://github.com/deseret-tech/litecoin-python. It alternates between generating passwords with an equal distribution of numbers and letters and passwords with the distribution of numbers and letters dependent on the size of their char sets (10 digitch…
import string
import random
import time
import litecoinrpc
import sys
from litecoinrpc.exceptions import WalletPassphraseIncorrect
def stringgen(size=16,chars=string.ascii_lowercase+string.ascii_uppercase, digs=string.digits):
return random.choice([''.join(random.choice([random.choice(chars),random.choice(digs)]) for x in range(size)),
''.join(random.choice(chars+digs) for x in range(size))])
@patch-werk
patch-werk / walletcrack.py
Last active August 29, 2015 13:57
Brutes a litecoin wallet password which has one character lost/forgotten.
# This script will brute a litecoin wallet whose password is missing one character.
# It requires python (duh) and the litecoinrpc library (https://github.com/deseret-tech/litecoin-python)
# The library allows leeching onto the local Litecoin-qt/litecoind client running on the computer.
# A litecoin.conf file must be placed in the litecoin data directory and contain the following (without the hashtags)
# server=1
# rpcuser=anything
# rpcpassword=anythinglol
# rpcallowip=127.0.0.1
# rpcport=18332
@patch-werk
patch-werk / commentFiltereddit.js
Last active August 29, 2015 13:55
RES Module which filters out annoying comments. See starting comments for info.
/*
This module does basic filtering of comments on reddit.
You have you install it yourself buy copy and pasting this code into the reddit_enchancement_suite.user.js file
For Mac and chrome it is located in one of the folders (the one that is RES's folder which has a folder in it
which is the current RES version 4.1.something) located in ~/User/Library/Application Support/Google/Chrome/Default
Paste the code at the end of the modules around line 21321 after the previous modules "};"
I do not know where the folder is on Windows but if you find it, it should still work on Chrome (I think).
THIS MODULES SETTINGS ARE IN THE FILTERS SECTION OF RES SETTINGS NOT COMMENTS