Skip to content

Instantly share code, notes, and snippets.

@wadefletch
wadefletch / todo.py
Last active April 10, 2024 14:57
Print from Todoist API to USB Thermal Printer
import todoist
from escpos import printer
therm = printer.Usb(0x0416, 0x5011) # connect to printer
api = todoist.TodoistAPI('79d4d663cc5011ab78cd7004e26a1a060572c823') # connect to todoist
api.sync() # get new data from todoist
therm.image('name.png') # print header image
therm.text('\n') # add a blank line
@wadefletch
wadefletch / bruteforce.py
Created March 23, 2015 21:26
bruteforce.py
import hashlib
import itertools
import string
import time
import console
def encrypt(data):
return hashlib.md5(data).hexdigest()
def crack(hash, charset, maxlength):