Skip to content

Instantly share code, notes, and snippets.

View benjaminabruzzo's full-sized avatar
🎯
Focusing

Benjamin benjaminabruzzo

🎯
Focusing
View GitHub Profile
@benjaminabruzzo
benjaminabruzzo / tshark.md
Last active February 12, 2026 21:39 — forked from dustyfresh/tshark.md
Systemd service to capture all traffic on ports 53/80/443. tshark will store up to 10MB of data per pcap file, and keep store up to 2GB of captures on disk. Once 2GB disk limit is reached, tshark will rotate older pcaps. Change the filecount in the capture script if you want to store more traffic on disk.

Continuous capture

Tested on Ubuntu 18.04.

Install tshark

You will want to allow non-root users to capture packets. These users must be part of the wireshark group.

$ sudo apt update
"""OpenCV contours to Shapely polygons converter
This script allows the user to convert the contours hirarchy generated by cv2.find_contours()
into a list of Shapely polygons.
This script requires that `cv2` `numpy` and `shapely` be installed within the Python
environment you are running this script in.
This file can also be imported as a module and contains the following
functions:
@benjaminabruzzo
benjaminabruzzo / 0033.yml
Created February 18, 2025 15:30 — forked from CribberSix/0033.yml
docker-compose.yml for a series of articles on my medium
version: "3"
services:
# scheduler & monitoring service
airflow-webserver:
hostname: myairflow
container_name: airflow_container
image: 'puckel/docker-airflow:1.10.9' # latest image as of 2021-11-08.
ports:
- '8085:8080'
@benjaminabruzzo
benjaminabruzzo / Install NVIDIA Driver and CUDA.md
Created November 5, 2018 15:56 — forked from zhanwenchen/Install NVIDIA Driver and CUDA.md
Install NVIDIA CUDA 9.0 on Ubuntu 16.04.4 LTS