Skip to content

Instantly share code, notes, and snippets.

/*
Lets you clean up your Garbage Youtube Recommendations
This just clicks the 'Not Interested' button on each video in your youtube recommendations.
Probably doesn't work if you are recommended a playlist.
*/
for (let i = 0; i < 10; i++)
{
@THEMVFFINMAN
THEMVFFINMAN / cleanupepub.py
Created October 4, 2016 16:42
Cleans up a specific type of bad conversion from pdf to epub
import re, os, sys
path = "EXTRACTED EPUB CONTENTS"
dirs = os.listdir(path)
for file in dirs:
if '.html' in file:
with open(path + "\\" + file, "r+") as f:
data = f.read()
@THEMVFFINMAN
THEMVFFINMAN / armyitsucks.py
Created September 29, 2016 01:13
Army it people are tards, this sends me an email once they fix their ssl stuff
import requests
import time
def send_me_an_email():
return requests.post(
"https://api.mailgun.net/v3/sendingdomain/messages",
auth=("api", "API"),
data={"from": "CIA <[email protected]>",
"to": ["myemail", "myemail"],
"subject": "Might be up",
@THEMVFFINMAN
THEMVFFINMAN / caesar.py
Created September 18, 2016 22:10
Caesar cipher based on unicode characters
# -*- coding: utf8 -*- python
caesar = 13
with open('ciphertext (2).txt', 'r') as f:
text = f.read()
converted = ""
for ch in text:
character = ord(ch) - caesar
converted = converted + unichr(character)
#!/usr/bin/env python
#
# Adapted from script by Diana MacLean 2011
#
# Adapted fro CS448G from Michael Noll's tutorial on : http://www.michael-noll.com/tutorials/writing-an-hadoop-mapreduce-program-in-python/
#
#
from operator import itemgetter
import sys
#!/usr/bin/python
import sys
import re
def main(argv):
line = sys.stdin.readline()
pattern = re.compile("[a-zA-Z][a-zA-Z0-9]*")
try:
while line:

Keybase proof

I hereby claim:

  • I am THEMVFFINMAN on github.
  • I am themuffinman (https://keybase.io/themuffinman) on keybase.
  • I have a public key whose fingerprint is 453A CC99 3654 CE6E AC3F 5E30 6A2C 3658 0E12 8088

To claim this, I am signing this object:

@THEMVFFINMAN
THEMVFFINMAN / autorun.inf
Created August 20, 2015 02:23
Keep forgetting how to do this
[autorun]
icon=serious.ico
label=Serious
@THEMVFFINMAN
THEMVFFINMAN / RedModQueue.js
Created July 8, 2015 17:56
This script will remove everything in your Reddit Moderation Queue
/*
A solution to a rather unique problem. I was hired on as a CSS admin for a subreddit and ended up having to do
a lot more than just CSS. Needless to say I became the only active mod. Now it was a huge pain to look at the
Moderation Queue and see crap from 4-5 years ago. It's basically meaningless now to sift through them and
determine which is spam and which isn't. So I created this script to just remove everything.
P.S. Nothing I can do about the full second time limit. Reddit won't register it if it's anything less.
*/
javascript: (function() {
var q = [];
@THEMVFFINMAN
THEMVFFINMAN / PyProxy.py
Created July 3, 2015 21:40
Returns a random proxy paired with the proper port.
import mechanize, random
def random_line(afile):
line = next(afile)
for num, aline in enumerate(afile):
if random.randrange(num + 2):
continue
line = aline
return line.replace("\n", "")