Skip to content

Instantly share code, notes, and snippets.

@sremy
sremy / nexus-uploader.py
Created February 26, 2019 00:36 — forked from omnisis/nexus-uploader.py
Uploads a local M2 repo to a remote Nexus Server
#!/usr/bin/env python
""""
nexus-uploader.py
Allows mirroring local M2 repositories to a remote Nexus server with a single command.
Supports:
- uploading of common classifiers (sources, javadocs) if available
- using regex include pattern for artifactIds/groupIds
- recursively processing local repo, just point to the root
@sremy
sremy / webserver
Created November 26, 2018 01:08 — forked from toonetown/webserver
A quick-and-dirty python web server that also handles SSL and client certificate authentication
#!/usr/bin/python
import BaseHTTPServer, SimpleHTTPServer, ssl, argparse, re
from tempfile import mkdtemp
from shutil import rmtree
from contextlib import contextmanager
from OpenSSL import crypto
from os.path import exists, join, abspath
@contextmanager
def TemporaryDirectory():