Skip to content

Instantly share code, notes, and snippets.

@dsakuma
dsakuma / http_server_auth.py
Last active June 9, 2022 01:46 — forked from lionelyoung/http_server_auth.py
Python3 http.server supporting basic HTTP Auth (username/password)
# Extended python -m http.serve with --username and --password parameters for
# basic auth, based on https://gist.github.com/fxsjy/5465353
# Usage: python -m http_server_auth -u USERNAME -p PASSWORD -d .
import base64
import os
from functools import partial
from http.server import SimpleHTTPRequestHandler, test
class AuthHTTPRequestHandler(SimpleHTTPRequestHandler):
@dsakuma
dsakuma / README-Template.md
Created May 13, 2020 17:09 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites