Skip to content

Instantly share code, notes, and snippets.

@JeffreyWay
JeffreyWay / gist:1525217
Created December 27, 2011 21:29
Instant Server for Current Directory
alias server='open http://localhost:8000 && python -m SimpleHTTPServer'
/* A simple module to query an OID (Oracle Internet Directory) server in order to
* look up the full connection string for a given database name.
*/
var ldap = require('ldapjs');
module.exports.byAlias = function(dbAlias, callback) {
var client = ldap.createClient({
url: 'ldap://oid:123/',
timeout: "2000", // LDAP operations timeout (milliseconds)
@khalidx
khalidx / node-typescript-esm.md
Last active May 8, 2024 07:58
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json