Skip to content

Instantly share code, notes, and snippets.

@amwelch
amwelch / dyno.py
Created August 6, 2023 20:46
Sleeper League Roster Ages
import pandas as pd
from sleeper_wrapper import League, Players, User
import ipdb
import json
import os.path
from tabulate import tabulate
DYNO_LEAGUE = 976543638605881344
league = League(DYNO_LEAGUE)
rosters = league.get_rosters()
@amwelch
amwelch / discover.py
Created March 19, 2016 09:05
iftop like report from a pcap
import dpkt
import humanfriendly
import nids
import pandas as pd
import socket
import sys
conv = {}
ip_to_domain = {}
end_states = (nids.NIDS_CLOSE, nids.NIDS_TIMEOUT, nids.NIDS_RESET)