Skip to content

Instantly share code, notes, and snippets.

View gascarcella's full-sized avatar

Gabriel Scarcella gascarcella

  • Buenos Aires, Argentina
  • 15:42 (UTC -03:00)
View GitHub Profile
@liviaerxin
liviaerxin / README.md
Last active February 23, 2026 17:34
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
anonymous
anonymous / Yu-Gi-Oh! Forbidden Memories - Explanation of RNG Manipulation.md
Created January 2, 2017 03:46
Yu-Gi-Oh! Forbidden Memories - Explanation of RNG Manipulation

Streamkey here, this is an explanation of the newly found RNG Manipulation in Yu-Gi-Oh! Forbidden Memories speedrunning.

1. Introduction

Until now, FM speedruns have followed a similiar format:

  • Start new game
  • Check starting deck and hope it's good (reset if not)
  • Farm Rex for dragons/thunders (skip if extremely good starting deck)
  • Beat world tournament
@JonathanPorta
JonathanPorta / dd-examples.md
Last active June 1, 2025 15:30
DD Backup, Compress, and Restore

Backup/Image

Make sure the if value is correct! If doing this over SSH then open a TMUX session first... or else...

dd if=/dev/YOUR-DEVICE conv=sync,noerror bs=64K | gzip -c  > /home/portaj/macbook.img.gz

NOTE: You might not want to compress the image. It just means you have to uncompress it later to mount it. If you're planning to access the data soon, or frequently, don't compress it.

Saving a copy of the drive geometry

Save it in the same directory as the compressed image so later on if you decide you want to mount or extract data from the image you can see the partition structure without having to decompress the whole image. There might be some other ways to mount a compressed image.