IPv6 address name¶

Assign IPv6 network address is bit faff.
It’s so faff to think about address¶
We can use only a to f, 0 to 9 and four letters combination. And also better add meanings to remember why assign this IPv6 address. I usually am using beef and cafe to type easy. Alas poor vocabulary.
Here is usable word list for IPv6 address with meaning(maybe, I did not check it all).
Abba
Adad
Adda
Caca
Dada
Dade
EBCD
Ecca
Edda
Faba
abac
abba
abbe
abed
acca
aced
adad
adda
affa
baba
babe
bade
baff
bead
bede
beef
caba
cade
cafe
ceca
cede
dabb
dace
dada
dade
daff
dead
deaf
deed
ebcd
ecad
edda
edea
face
fade
faff
feed
It’s inspired by Alec’s Web Log
A code.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import sys
from io import open
context = sys.argv[1]
fha = re.compile(r"^[a-fA-F0-9]{4}\n")
with open(context, encoding='utf8', errors='ignore') as lines:
for line in lines:
if fha.search(line):
print(line),
|
Run.
foo> python this-program.py words-file