Skip to content

Instantly share code, notes, and snippets.

Matthew Redmond mrdmnd

  • Google X
  • San Francisco, CA
Block or report user

Report or block mrdmnd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mrdmnd /
Created Oct 4, 2016
A short script to output ordered bus-route stop data for two routes in San Clemente, CA
import json
import requests
# Rough bounding box for San Clemente, CA
southwest = [33.351665, -117.779208]
northeast = [33.566387, -117.537489]
bbox_string = "%s,%s,%s,%s" % tuple(southwest[::-1]+northeast[::-1])
stops = []
routes = []
View gist:4760746
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'Valloric/YouCompleteMe'
import string
# Algorithm for SMBC #2874 - the "fouriest" transform.
# Support bases 2-36.
BASE_LIST = string.digits + string.letters
def encode(integer, base):
# Stolen off the internet from somewhere,
# almost certainly guaranteed to be buggy.
base_list = BASE_LIST[:base]
mrdmnd /
Created Aug 26, 2012
TCG Player deck scraper
# Copyright 2012 Matt Redmond
__author__ = ""
import mechanize
from Queue import Queue, Empty
from threading import Thread
import re
queue = Queue()
break_regex = re.compile("<br>", re.IGNORECASE)
mrdmnd /
Created Aug 12, 2012
Quick bruteforcer. No results.
import sys
from keepass import kpdb
byte_strings = [hex(x)[2:].rjust(2, '0').lower() for x in range(255)]
pass_template = "%s3b140a6ec5%sec"
num_tried = 0
for s1 in byte_strings:
for s2 in byte_strings:
tmp_pw = pass_template % (s1, s2)
num_tried += 1
You can’t perform that action at this time.