Skip to content

Instantly share code, notes, and snippets.

Ron Dias TheRedMudder

Block or report user

Report or block TheRedMudder

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import os,errno,shutil,glob,htmlmin,codecs;
# Delete in Background
def trmSilentDelete(filename):
except OSError as e:
if e.errno != errno.ENOENT: #No Raise Exception if no such file or directory
raise # Raise Exception other Error
# Replace Content in File With
TheRedMudder /
Created Jan 28, 2018
Handle HTTP Post W/O additional Modules
from http.server import SimpleHTTPRequestHandler
from socketserver import TCPServer
from urllib.parse import parse_qsl
from threading import Thread
#Choose how you want to Process the post data in this function
def processPostData(post=["No Post Data"]):#Print all post data
for field in post:
class PostHandler(SimpleHTTPRequestHandler):
def do_POST(self):
You can’t perform that action at this time.