Skip to content

Instantly share code, notes, and snippets.

@S-Koell
S-Koell / exportDDL.js
Last active April 30, 2024 16:33 — forked from DominiqueComte/exportDDL.sql
export an Oracle schema DDL with SQLcl
var CopyOption = Java.type("java.nio.file.StandardCopyOption");
// put all files here >>>
var rootPathString = 'C:/Users/dump';
var pathString;
//Create Root Folder for instance.
//var instance = util.executeReturnOneCol('SELECT sys_context(\'USERENV\',\'INSTANCE_NAME\') AS Instance FROM dual');
//rootPathString = rootPathString + "/" + instance;
@echojc
echojc / listen.py
Created May 23, 2013 03:58
Quick 'n' dirty Python script to listen on a port and do nothing with the connection, simulating a server that allows you to connect but does not reply.
#!/usr/bin/python
import socket
import sys
if (len(sys.argv) != 2 or not sys.argv[1].isdigit()):
print 'Usage: listen <port>',
exit()
p = int(sys.argv[1])
l = []