Skip to content

Instantly share code, notes, and snippets.

@copeland3300
copeland3300 / Python SimpleHTTPServer with SSL
Created February 20, 2018 20:36 — forked from rozifus/Python SimpleHTTPServer with SSL
Python SimpleHTTPServer with SSL
# useful for running ssl server on localhost
# which in turn is useful for working with WebSocket Secure (wss)
# copied from http://www.piware.de/2011/01/creating-an-https-server-in-python/
@copeland3300
copeland3300 / export-wifi-profiles.cmd
Created June 14, 2017 01:32 — forked from dolmen/export-wifi-profiles.cmd
Export all Windows Wifi profiles (SSID, password) in XML
:: Run with full administrator rights
netsh wlan export profile folder=. key=clear
@copeland3300
copeland3300 / lighttpd.conf
Created January 19, 2016 15:21
Lighttpd config for Pi-hole VM
#### Goes in /etc/lighttpd/lighttpd.conf
server.modules = (
"mod_access",
"mod_accesslog",
"mod_expire",
"mod_compress",
"mod_redirect",
"mod_setenv",
"mod_rewrite"
'''
referenced pages
http://stackoverflow.com/questions/845058/how-to-get-line-count-cheaply-in-python
'''
import argparse
import sys
import requests
import simplejson