Skip to content

Instantly share code, notes, and snippets.

View ilmedova's full-sized avatar
🎯
Achieving goals

Mahri Ilmedova ilmedova

🎯
Achieving goals
View GitHub Profile
from fastapi import FastAPI, BackgroundTasks
from pydantic import BaseModel, EmailStr
from typing import List
import smtplib
from email.mime.text import MIMEText
SMTP_HOST = "smtp.example.com"
SMTP_PORT = 587
SMTP_USER = "[email protected]"
SMTP_PASS = "your-password"
@ilmedova
ilmedova / gh-pages-deploy.md
Created February 17, 2025 21:14 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@ilmedova
ilmedova / upload-to-aws-flask.md
Created February 17, 2025 21:14 — forked from leongjinqwen/upload-to-aws-flask.md
upload files to aws s3 bucket with flask

Upload files to AWS

Make sure you already have S3 bucket, access key and secret key before go through this notes.

How to connect to AWS?

Boto3 allows Python developers to write software that makes use of services like Amazon S3 and Amazon EC2.

Step 1: Install boto3 with pip

pip install boto3