Skip to content

Instantly share code, notes, and snippets.

View natoinet's full-sized avatar

@ntoinet natoinet

View GitHub Profile
@natoinet
natoinet / ms-remove-empty-menu-link.php
Created June 8, 2021 11:47 — forked from marco-s/ms-remove-empty-menu-link.php
WordPress menu: remove href link for "empty" menu items
@natoinet
natoinet / lambda_ftp.py
Last active February 25, 2024 00:11
AWS Lambda in Python: Upload a new file from S3 to FTP
import os
import json
from ftplib import FTP
import boto3
# Source https://github.com/Vibish/FTP_SFTP_LAMBDA/blob/master/FTPThroughLambda.py
# https://www.edureka.co/community/17558/python-aws-boto3-how-do-i-read-files-from-s3-bucket
# https://medium.com/better-programming/transfer-file-from-ftp-server-to-a-s3-bucket-using-python-7f9e51f44e35
# https://github.com/kirankumbhar/File-Transfer-FTP-to-S3-Python/blob/master/ftp_to_s3.py
# https://dashbird.io/blog/python-aws-lambda-error-handling/