Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Working on @m8finder

Marvin Heilemann muuvmuuv

💻
Working on @m8finder
View GitHub Profile
@bradtraversy
bradtraversy / docker-help.md
Last active Sep 20, 2021
Docker Commands, Help & Tips
View docker-help.md

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@dfee
dfee / ip_regex.py
Last active Sep 22, 2021
Python IPV4 / IPV6 Regular Expressions (REGEX)
View ip_regex.py
# Constructed with help from
# http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses
# Try it on regex101: https://regex101.com/r/yVdrJQ/1
import re
IPV4SEG = r'(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])'
IPV4ADDR = r'(?:(?:' + IPV4SEG + r'\.){3,3}' + IPV4SEG + r')'
IPV6SEG = r'(?:(?:[0-9a-fA-F]){1,4})'
IPV6GROUPS = (