Skip to content

Instantly share code, notes, and snippets.

View karolzlot's full-sized avatar
🏠
Working from home

Karol Zlot karolzlot

🏠
Working from home
View GitHub Profile
@karolzlot
karolzlot / ovh_dns_settings_for_fastmail.txt
Last active July 18, 2024 08:40
OVH DNS settings for fastmail.com. They can be pasted "as text" in OVH panel to replace all current settings. You need to replace "example.fr" with your domain.
$TTL 3600
@ IN SOA dns200.anycast.me. tech.ovh.net. (2022082311 86400 3600 3600000 60)
IN NS ns200.anycast.me.
IN NS dns200.anycast.me.
IN A 66.111.4.53
IN A 66.111.4.54
IN MX 10 in1-smtp.messagingengine.com.
IN MX 20 in2-smtp.messagingengine.com.
IN TXT "v=spf1 include:spf.messagingengine.com ~all"
@karolzlot
karolzlot / normalization_comparison.py
Created December 1, 2022 01:10
Python normalization comparison
import unicodedata
from unidecode import unidecode
def normalize(text:str):
text = unicodedata.normalize('NFD', text)\
.encode('ascii', 'ignore')\
.decode("utf-8")
return text
text ='zażółć gęślą jaźń, kožušček 北亰 François aaßaa aßb'