Skip to content

Instantly share code, notes, and snippets.


Capcom ddfault

View GitHub Profile
ddfault /
Last active Jun 25, 2020 — forked from toringe/
Merge CIDR blocks into super blocks if possible
#!/usr/bin/env python
# Example 1: All blocks in list.txt, one CIDR per line
# cat list.txt | (linux)
# type list.txt | (Windows)
# Example 2: Echo CIDR blocks to stdout
# echo |
# Adjusted python print to print() to work with my python 3.5 on Windows.
You can’t perform that action at this time.