Skip to content

Instantly share code, notes, and snippets.

View chmeliuk's full-sized avatar

Denys Chmeliuk chmeliuk

View GitHub Profile
@chmeliuk
chmeliuk / server.py
Created October 4, 2024 12:10 — forked from AutumnSun1996/server.py
prefect server with apikey and basic auth
"""A simple wrapper for prefect server, with apikey and basic auth check.
usage:
```bash
# Allow prefect cli to access the server with same PREFECT_API_KEY.
PREFECT_API_KEY=XX
# base64 encoded `username:password`. Allow users to access the server with user:password.
PREFECT_BASIC_AUTH=XX
# start server
uvicorn --host $PREFECT_SERVER_API_HOST --port $PREFECT_SERVER_API_PORT --factory server:create_auth_app
@chmeliuk
chmeliuk / phalcon-events.list
Created January 6, 2016 13:02 — forked from xboston/phalcon-events.list
Phalcon events:list
dispatch:beforeDispatchLoop
dispatch:beforeDispatch
dispatch:beforeNotFoundAction
dispatch:beforeExecuteRoute
dispatch:afterInitialize
dispatch:afterExecuteRoute
dispatch:afterDispatch
dispatch:afterDispatchLoop
dispatch:beforeException