Skip to content

Instantly share code, notes, and snippets.

@s4mdf0o1
s4mdf0o1 / list_utf-8_symbols_with_names.py
Last active November 1, 2015 16:43
Generate the utf-8 symbols with Python3, so you can '$ grep FACE utf8.list'
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unicodedata
u=""
name=""
line=""
for i in range(65000):
u+=chr(i)
@s4mdf0o1
s4mdf0o1 / dns-inc-zone-serial.py
Last active November 1, 2016 16:53
Change your authoritative DNS Serial
#!/usr/bin/env python
import os
import re
import time
file = "<put/your/db.domain.tld/zone/file/here>"
date = time.strftime("%Y%m%d")
regex = r"^( *)(20[0-9]{6})([0-9]{2}) ; Serial"
new_date = ""
with open(file) as fp: