Skip to content

Instantly share code, notes, and snippets.

View danielfeloiola's full-sized avatar
🎯
Focusing

Daniel Loiola danielfeloiola

🎯
Focusing
  • Brazil
View GitHub Profile
@philippegirard
philippegirard / main.py
Created April 18, 2020 20:18
fastapi logging middleware
import logging
from fastapi import FastAPI
from uicheckapp.services import EchoService
logging.config.fileConfig('logging.conf', disable_existing_loggers=False)
logger = logging.getLogger(__name__)
app = FastAPI()
@n-eq
n-eq / deloldtweets.py
Last active March 21, 2021 13:06 — forked from intentionally-left-nil/deloldtweets.py
Delete old tweets based on twitter archive
#!/bin/python3
# Fork of https://gist.github.com/davej/113241
# Requirements:
# - twitter API credentials (replace the correponding variables)
# - tweet.js file you get by extracting your twitter archive zip file (located in data/)
# License : Unlicense http://unlicense.org/
import tweepy
import