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
@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.8
import unicodedata
import atexit
import sys
import logging
import time
import asyncio
import nio
#!/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
@d33tah
d33tah / Makefile
Last active February 22, 2022 04:26
A backup of Deenash Tibia bot I had on my SourceForge account. Dates back to 2008-06-22.
OBJ = comm.o protocol.o main.o tb_xtea.o
all: deenash
deenash: $(OBJ)
g++ -o deenash $(OBJ) -lgmp
%.o:%.cpp
g++ -c -g $+
clean:
rm -f *.o deenash
@d33tah
d33tah / identify.py
Created July 30, 2014 14:27
Converts Python indentation to C-like braces style (sometimes).
#!/usr/bin/python
# Converts Python indentation to C-like braces style (sometimes).
#
# Usage:
#
# python indentify.py < somefile.py
#
# Author:
#