Skip to content

Instantly share code, notes, and snippets.

View tonykurya's full-sized avatar

Toni tonykurya

View GitHub Profile
# Import the required libraries
import click
import mysql.connector
from mysql.connector import Error
import os
def get_database_connection():
# Connect to the MySQL database using environment variables
@tonykurya
tonykurya / nginx.conf
Created January 28, 2019 18:20
HLS http server
worker_processes auto;
events {
worker_connections 1024;
}
# RTMP configuration
rtmp {
server {
listen 1935; # Listen on standard RTMP port
chunk_size 4000;