Skip to content

Instantly share code, notes, and snippets.

View ninjadq's full-sized avatar
Σ(°Д°;

DQ ninjadq

Σ(°Д°;
View GitHub Profile
@ninjadq
ninjadq / bash.py
Created March 16, 2016 02:16 — forked from kirpit/bash.py
Enables to run subprocess commands in a different thread with TIMEOUT option!
#! /usr/bin/env python
import threading
import subprocess
import traceback
import shlex
class Command(object):
"""
Enables to run subprocess commands in a different thread with TIMEOUT option.
@ninjadq
ninjadq / reflect.py
Created March 16, 2016 02:13 — forked from huyng/reflect.py
A simple echo server to inspect http web requests
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
@ninjadq
ninjadq / docker-ovs.md
Created October 10, 2015 03:03 — forked from noteed/docker-ovs.md
Docker - Open vSwitch setup