Skip to content

Instantly share code, notes, and snippets.

☕️
Converting coffee into code

Tyler Kennedy TkTech

☕️
Converting coffee into code
Block or report user

Report or block TkTech

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
View TryCatch.java
public class TryCatch {
public void test() {
try {
int i = 1 / 0;
} catch(ArithmeticException e) {
return;
}
}
}
View keybase.md

Keybase proof

I hereby claim:

  • I am tktech on github.
  • I am tktech (https://keybase.io/tktech) on keybase.
  • I have a public key ASBPQ8lLlGEka9GPqnlF03t7ZfyA6lw7Fpr5MaBTaB8l_Qo

To claim this, I am signing this object:

View gist:9163704
1 x Intel Core i7 4770K Unlocked Quad Core 3.5GHZ Processor LGA1150 Haswell 8MB Cache Retail
1 x Corsair Cooling Hydro Series H110 High Performance CPU Cooler LGA1150 1155 1156 1366 2011 FM1 FM2
1 x ASUS Maximus VI Extreme ATX LGA1150 Z87 DDR3 SATA3 USB3.0 DVI HDMI Motherboard
2 x Corsair Dominator Platinum 16GB 2X8GB DDR3-1866 240PIN C9 DIMM 1.5V Dual Channel Memory Kit
2 x ASUS GeForce GTX 770 1110MHZ 2GB 7010MHZ GDDR5 DVI HDMI PCI-E Video Card
1 x Corsair Carbide Series Air 540 High Airflow Cube Case ATX Window 2X5.25 2X3.5INT USB3.0 No PS
1 x Corsair AX1200I 1200W Digital ATX 12V 80 Plus Platinum Modular Power Supply 140mm Fan
2 x Bitfenix BFA-ACL-30OK15-RP Alchemy LED Connect Lit 30CM 15 LEDs - Orange
2 x Seagate Barracuda 2TB 7200RPM SATA3 64MB Cache 3.5in Internal Hard Drive
View gist:8816587
import struct
from collections import namedtuple
Column = namedtuple('Column', 'start end')
with open('assets/minecraft/font/glyph_sizes.bin', 'rb') as fin:
sizes = [Column(
b >> 4,
b & 0x0F
View gist:7834022
from getmymail import Client
c = Client.from_email('tk@tkte.ch')
c.login_keychain('tk@tkte.ch')
View gist:6000549
#!/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>
View yggdrasil.py
##!/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>
@TkTech
TkTech / gist:5582408
Last active Dec 17, 2015
crawl lcbo in one titanic go.
View gist:5582408
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Piss quick script to dump all of LCBO
"""
import sys
import urlparse
import requests
import lxml.html
View gist:4240880
#!/usr/bin/env python
# -*- coding: utf8 -*-
import re
from collections import namedtuple
import requests
BukkitPluginUser = namedtuple('BukkitPluginUser', [
'name',
View gist:4194268
#!/usr/bin/env python
# -*- coding: utf8 -*-
import re
import sys
import getopt
from jawa import JarFile, ConstantMethodRef, ConstantInterfaceMethodRef
_method_types = (ConstantMethodRef, ConstantInterfaceMethodRef)
You can’t perform that action at this time.