Skip to content

Instantly share code, notes, and snippets.

@amdei
amdei / SimpleHTTPServerWithUpload.py
Last active August 30, 2022 12:36 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
__version__ = "0.1"
__all__ = ["SimpleHTTPRequestHandler"]
@amdei
amdei / tarantoo.box.info.txt
Created March 30, 2020 13:56
5m2m - 6 elements
unix/:/var/run/tarantool/ng_tnt.control> box.info
---
- vinyl: []
version: 1.10.4-2-ga62c0eed5
id: 5
ro: false
status: running
vclock: {1: 65535}
uptime: 82
lsn: 0
@amdei
amdei / getallvms_switches.py
Created September 23, 2022 22:04
List all VMs on Datacenter with mapping their NICs to DVS
#!/usr/bin/env python
# VMware vSphere Python SDK
# Copyright (c) 2008-2021 VMware, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#