Skip to content

Instantly share code, notes, and snippets.

@pvbhanuteja
pvbhanuteja / README.md
Created February 23, 2024 01:54 — forked from liviaerxin/README.md
FastAPI and Uvicorn Logging #python #fastapi #uvicorn #logging

FastAPI and Uvicorn Logging

When running FastAPI app, all the logs in console are from Uvicorn and they do not have timestamp and other useful information. As Uvicorn applies python logging module, we can override Uvicorn logging formatter by applying a new logging configuration.

Meanwhile, it's able to unify the your endpoints logging with the Uvicorn logging by configuring all of them in the config file log_conf.yaml.

Before overriding:

uvicorn main:app --reload
@pvbhanuteja
pvbhanuteja / breach.txt
Created January 8, 2024 06:32 — forked from fawazahmed0/breach.txt
Email and password breach collection list
# Please Note, I am sharing this, hoping this will be used for good public use, such as data analysis, penetration testing etc
# These links are already available all over the internet
# Also Note, Trying to login into someone else's account without their permission is unethical and illegal
# Collection 1
magnet:?xt=urn:btih:B39C603C7E18DB8262067C5926E7D5EA5D20E12E&dn=Collection%201&tr=udp%3a%2f%2ftracker.coppersurfer.tk%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.leechers-paradise.org%3a6969%2fannounce&tr=http%3a%2f%2ft.nyaatracker.com%3a80%2fannounce&tr=http%3a%2f%2fopentracker.xyz%3a80%2fannounce
# Collection 2-5 & Antipublic
magnet:?xt=urn:btih:D136B1ADDE531F38311FBF43FB96FC26DF1A34CD&dn=Collection%20%232-%235%20%26%20Antipublic&tr=udp%3a%2f%2ftracker.coppersurfer.tk%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.leechers-paradise.org%3a6969%2fannounce&tr=http%3a%2f%2ft.nyaatracker.com%3a80%2fannounce&tr=http%3a%2f%2fopentracker.xyz%3a80%2fannounce
@pvbhanuteja
pvbhanuteja / AWS-pytesseract.md
Created August 16, 2022 20:32 — forked from mdv3101/AWS-pytesseract.md
Steps for installing Tesseract(4.0) on AWS-Lambda

Tesseract-OCR AWS Setup (using pytesseract and python2.7)

Follow these steps on a fresh 64bit AWS AIM instance

Connect to AWS AIM instance, then follow these steps:

  1. Update system libraries
sudo yum -y update
sudo yum -y upgrade
@pvbhanuteja
pvbhanuteja / tmux-cheatsheet.markdown
Created May 25, 2020 11:31 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@pvbhanuteja
pvbhanuteja / README.md
Created May 25, 2020 11:31 — forked from hxtree/README.md
Linux Screen

Linux Screens

Linux screens are great for running background tasks and are especially helpful when running a long process on a remote server due to SSH timelimits.

Start a new screen

screen

(Run commands for tasks)

Detach from a screen

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: