Skip to content

Instantly share code, notes, and snippets.

View TkTech's full-sized avatar
Converting coffee into code

Tyler Kennedy TkTech

Converting coffee into code
View GitHub Profile
20:50 Starting query in Freenode with papna
20:50 > I would rather not annoy kloeri
20:50 > Disclaimer, everything said here will be public
20:50 > Agreed?
20:50 Starting query in Freenode with papna
20:50 > I would rather not annoy kloeri
20:50 > Disclaimer, everything said here will be public
20:50 > Agreed?
class JawaEditorPanel(wx.Panel):
"""
Constructs the right panel which contains the viewer window.
"""
def __init__(self, *args, **kwargs):
super(JawaEditorPanel, self).__init__(*args, **kwargs)
self._notebook = notebook = wx.aui.AuiNotebook(
self,
wx.ID_ANY, style=(
wx.EXPAND |
@classmethod
def shorten(cls, url):
# Make sure the URL hasn't already been shortened, since github
# may does this in the future for web hooks. Better safe than silly.
if re.search(r'^https?://git.io', url):
return url
# Only github URLs can be shortened by the git.io service, which
# will return a 201 created on success and return the new url
# in the Location header.
#!/usr/bin/env python
# -*- coding: utf8 -*-
import re
import sys
import getopt
from jawa import JarFile, ConstantMethodRef, ConstantInterfaceMethodRef
_method_types = (ConstantMethodRef, ConstantInterfaceMethodRef)
#!/usr/bin/env python
# -*- coding: utf8 -*-
import re
from collections import namedtuple
import requests
BukkitPluginUser = namedtuple('BukkitPluginUser', [
'name',
@TkTech
TkTech / gist:5582408
Last active December 17, 2015 08:49
crawl lcbo in one titanic go.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Piss quick script to dump all of LCBO
"""
import sys
import urlparse
import requests
import lxml.html
##!/usr/bin/env python
# -*- coding: utf-8 -*-
"""yggdrasil.py
A tool for debugging and exploring yggdrasil, Minecraft's new
authentication system.
Usage:
yggdrasil.py login <username> [--password=<password>]
yggdrasil.py migrated <username>
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""clean_db.py
Helps to immunize registration spam from a MediaWiki installation.
Usage:
clean_db.py scan <dbstring> [options]
clean_db.py bans <dbstring>
from getmymail import Client
c = Client.from_email('[email protected]')
c.login_keychain('[email protected]')