Skip to content

Instantly share code, notes, and snippets.

View RobertoPrevato's full-sized avatar
🐍
Working and having fun on GitHub

Roberto Prevato RobertoPrevato

🐍
Working and having fun on GitHub
  • Warsaw, Poland
View GitHub Profile
@RobertoPrevato
RobertoPrevato / 001.png
Last active December 20, 2017 19:52
Mixed files for documentation purpose
001.png
{
"info": {
"_postman_id": "e5e56cc1-5903-495f-81f3-999e84f1e682",
"name": "Application Insights",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Track Event",
"request": {
@RobertoPrevato
RobertoPrevato / run-uvicorn.py
Created October 10, 2019 12:10
Useful code
"""
Use this script to debug an application served by Uvicorn.
"""
# Nota bene: to debug an application that configures an event loop before calling uvicorn.run,
# it is possible to replace `uvicorn.run` with the following code fragment.
# This is necessary for example, when data access layer and business logic
# are configured before starting the application.
# See https://github.com/encode/uvicorn/pull/446#issuecomment-540484961
@RobertoPrevato
RobertoPrevato / aioshot.py
Last active March 11, 2022 15:19
Useful scripts
"""
aiohttp shooting
"""
import os
import asyncio
import aiohttp
import time
url = "https://example/isalive"
Gist for other projects
# Gist for various files related to Neoteroi