Skip to content

Instantly share code, notes, and snippets.

View d33tah's full-sized avatar

Jacek Wielemborek d33tah

View GitHub Profile
[package]
name = "ircclient"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
failure = "0.1.8"
futures = "0.3.26"
@d33tah
d33tah / .dockerignore
Created February 11, 2023 08:52
Generates a collage based on a set of videos
video_files_by_sha1
output
*.pyc
#!/usr/bin/env python3
import subprocess
import urllib.parse
import json
import lxml.html
def read_url(url):
#!/usr/bin/env python3.8
import logging
import time
import asyncio
import requests
import lxml.html
import nio
#!/usr/bin/env python3.8
import unicodedata
import atexit
import sys
import logging
import time
import asyncio
import nio
@d33tah
d33tah / Dockerfile
Last active August 16, 2022 19:44
Generates a minimal Linux kernel source tree that actually builds. The code has been continued here: https://github.com/d33tah/minimal-kernel-build/
# sudo docker buildx build . --output minified
FROM python:3.10 as source
WORKDIR /
RUN grep -v '^#' /etc/apt/sources.list | sed 's/deb /deb-src /' >> /etc/apt/sources.list
RUN apt-get update && apt-get install strace bc bison flex -y && apt-get build-dep -y linux-image-amd64
RUN wget -nv https://git.kernel.org/torvalds/t/linux-5.19-rc8.tar.gz
RUN tar xf linux-5.19-rc8.tar.gz
ADD linux-genlist.py .
RUN cd linux-5.19-rc8 && python3 ../linux-genlist.py
FROM scratch
#!/usr/bin/env python3
import datetime
import sys
import time
import argparse
import serial
import pygame
import struct
import time
import math
import random
import sys
import select
FREQ = 44100
#!/usr/bin/env python3
import time
import subprocess
import copy
from enum import Enum, auto
import typing as T
import random
T_POS = T.List[int]
@d33tah
d33tah / whoscansme.py
Last active September 3, 2021 15:22
A tool that displays which /24 networks portscanned me, hour by hour.
#!/usr/bin/env python2
import subprocess
import datetime
import csv
import collections
import sys
import socket