Skip to content

Instantly share code, notes, and snippets.

View mzhukovs's full-sized avatar

Mark Zhukovsky mzhukovs

  • Earth
View GitHub Profile
@stanorama
stanorama / iis_streamlit.md
Last active April 8, 2024 06:32
IIS Reverse Proxy and Windows Authentication for Streamlit

IIS Reverse Proxy and Windows Authentication for Streamlit

Introduction

Setting up a reverse proxy on IIS (Internet Information Services) allows us to take advantage of windows authentication.

This means we can limit access to a streamlit app to a specific Active Directory group, Local group or list of Active Directory users.

(I haven't tested https support yet).

@Arqentum
Arqentum / normalize_column_names_spark.py
Last active January 15, 2021 13:46
normalize column names #Spark
def normalize_column_names(df: DataFrame) : DataFrame = {
df.toDF(df.columns map(_
.toLowerCase
.replaceAll("\\s", "_")
.replaceAll("\"+", "")
): _*)
}
def load_path_as_df(dict: List[List[String]]) {