Skip to content

Instantly share code, notes, and snippets.

@daemongh
daemongh / unfuk.py
Last active January 27, 2024 15:07
Unpack .fuk files (Railway Empire, Patrician, Port Royale)
import os
import shutil
import sys
import zlib
def read_uint(file):
read_bytes = file.read(4)
result = 0
@daemongh
daemongh / cup.py
Created June 26, 2018 01:31
World Cup Slack Bot
import requests
import os
import pathlib
import json
import pendulum
import hashlib
from time import sleep
UPDATE_INTERVAL = 60
SETTINGS = {