Skip to content

Instantly share code, notes, and snippets.

@stanorama
stanorama / iis_streamlit.md
Last active September 21, 2025 11:46
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).

@isammour
isammour / bot.cs
Created February 28, 2022 21:42
C# telegram messaging bot
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Telegram.Bot;
using Telegram.Bot.Extensions.Polling;
using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
@badcommandorfilename
badcommandorfilename / datepicker.cshtml
Created July 20, 2017 01:24
C# HTML5 input date datepicker MVC Razor
<!-- How to insert a date editor in a Razor view -->
<div class="form-group">
@Html.LabelFor(model => model.Start, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.TextBoxFor(model => model.Start, new { @type="date", @class = "form-control datepicker", @Value = Model.Start.ToString("yyyy-MM-dd") } )
@Html.ValidationMessageFor(model => model.Start, "", new { @class = "text-danger" })
</div>
</div>