Skip to content

Instantly share code, notes, and snippets.

@dkavraal
dkavraal / türkçe.py
Last active January 3, 2020 07:46
in Turkish texts detecting which charset among cp1254 (windows 1254) and UTF-8 is used
"""
Letter Codes
------------------------
LETTER Windows-1254 ISO-8859-9 latin5 UTF-8
ğ b'\xf0' b'\xf0' b'\xf0' b'\xc4\x9f'
ı b'\xfd' b'\xfd' b'\xfd' b'\xc4\xb1'
ş b'\xfe' b'\xfe' b'\xfe' b'\xc5\x9f'
ü b'\xfc' b'\xfc' b'\xfc' b'\xc3\xbc'
ö b'\xf6' b'\xf6' b'\xf6' b'\xc3\xb6'
@dkavraal
dkavraal / Setting_Up_Email_Receiving_in_AWS_Lambda_and_Forwarding.md
Last active November 23, 2020 22:27
AWS Lambda Receive Email Forward Function

Set up an IAM Role called (say) SNSEmailForwarder:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
 "Action": [