Skip to content

Instantly share code, notes, and snippets.

View AntonioFeijaoUK's full-sized avatar

Antonio Feijao UK AntonioFeijaoUK

View GitHub Profile
@AntonioFeijaoUK
AntonioFeijaoUK / .gitignore
Last active October 6, 2017 21:13 — forked from octocat/.gitignore
Some common .gitignore configurations
# For security reasons, to protect the distracted
###################
*.pem
*.txt
*.key
# Compiled source #
###################
*.com
*.class
def add_until(max_number):
result = 0
first_number = 0
second_number = 0
while int(max_number) > int(result):
if first_number == 0:
print("First number + Second number: " + str(first_number) + " + " + str(second_number) + " = " + str(result))
first_number = 1
else:
result = first_number + second_number
/* source https://lonekorean.github.io/gist-syntax-themes/ */
body .gist .highlight {
background: #141414;
}
body .gist .blob-num,
body .gist .blob-code-inner,
body .gist .highlight,
body .gist .pl-enm,
body .gist .pl-ko,
/* source https://lonekorean.github.io/gist-syntax-themes/ */
body .gist .highlight {
background: #000;
}
body .gist .blob-num,
body .gist .blob-code-inner,
body .gist .pl-en,
body .gist .pl-sc,
body .gist .highlight-source-css .pl-k,
/* source https://lonekorean.github.io/gist-syntax-themes/ */
body .gist .highlight {
background: #141414;
}
body .gist .blob-num,
body .gist .blob-code-inner,
body .gist .pl-s2,
body .gist .pl-smi,
body .gist .pl-smp,
/* source https://lonekorean.github.io/gist-syntax-themes/ */
/* Gist Custom Syntax Highlighting SCSS
--------------------------------------------- */
body .gist {
.gist-file {
border: none;
border-bottom: none;

Keybase proof

I hereby claim:

  • I am antoniofeijaouk on github.
  • I am antoniofeijaouk (https://keybase.io/antoniofeijaouk) on keybase.
  • I have a public key ASDivWMdG1KV-oxqyqdOrcfNKRDpDd_7eSmeZgnCPTV0wAo

To claim this, I am signing this object:

@AntonioFeijaoUK
AntonioFeijaoUK / function-to-email-notification-for-new-file-uploaded.py
Created July 25, 2022 06:12
function-to-email-notification-for-new-file-uploaded.py
print('Loading function')
# source - https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-presigned-urls.html
import logging
import boto3
from botocore.exceptions import ClientError
import json