Skip to content

Instantly share code, notes, and snippets.

import sopel.module
import time
nicklist = {}
paylist = {}
@sopel.module.event('JOIN')
@sopel.module.rule('.*')
def greeting(bot, trigger):
if trigger.sender == '#monero-pools' and trigger.nick != bot.nick:
@kinghat
kinghat / list_comprehension.py
Created May 27, 2017 05:59 — forked from blubberdiblub/list_comprehension.py
Explaining list comprehension
new_list = [do_something_with(x) for x in old_list]
# is basically short for
new_list = []
for x in old_list:
new_list.append(do_something_with(x))
@kinghat
kinghat / decryptchromecookies.py
Created May 27, 2017 05:58 — forked from DakuTree/decryptchromecookies.py
Decrypt Chrome Cookies File (Python 3) - Windows
#Based off https://gist.github.com/DakuTree/98c8362fb424351b803e & pieces of https://gist.github.com/jordan-wright/5770442
from os import getenv
from shutil import copyfile
import sqlite3
import win32crypt #https://sourceforge.net/projects/pywin32/
# Copy Cookies to current folder
copyfile(getenv("APPDATA") + "/../Local/Google/Chrome/User Data/Default/Cookies", './Cookies')
# Connect to the Database