Skip to content

Instantly share code, notes, and snippets.

@occasl
occasl / LDAP Test in Node
Created August 8, 2012 22:46
Example of doing LDAP
ldap = require('ldapjs');
var client = ldap.createClient({
url: 'ldap://ldap.server.com:389/o=base'
});
client.bind('cn=root', 'secret', function(err) {
assert.ifError(err);
});

Keybase proof

I hereby claim:

  • I am occasl on github.
  • I am occasl (https://keybase.io/occasl) on keybase.
  • I have a public key ASBmKx5-5cBuuGv473jmKUPUJbL72hgUn0JtAi2hmt5lCgo

To claim this, I am signing this object:

@occasl
occasl / newrelic-browser.d.ts
Created October 2, 2017 12:35 — forked from piotrkubisa/newrelic-browser.d.ts
TypeScript declaration file with the NewRelic Browser typings.
// Type definitions for NewRelicBrowser v1026
// Project: https://docs.newrelic.com/docs/browser/new-relic-browser/browser-agent-spa-api
// Definitions by: Piotr Kubisa <https://gist.github.com/piotrkubisa/4a1cc7355afcec46651a896d59ec8d50>
declare var newrelic: NewRelicBrowser;
interface NewRelicBrowser {
addPageAction(name: string, attributes: any): void;
addRelease(release_name: string, release_id: string): void;
addToTrace(custom_object: any): void;
@occasl
occasl / newrelic-browser.d.ts
Created October 2, 2017 12:36 — forked from piotrkubisa/newrelic-browser.d.ts
TypeScript declaration file with the NewRelic Browser typings.
// Type definitions for NewRelicBrowser v1026
// Project: https://docs.newrelic.com/docs/browser/new-relic-browser/browser-agent-spa-api
// Definitions by: Piotr Kubisa <https://gist.github.com/piotrkubisa/4a1cc7355afcec46651a896d59ec8d50>
declare var newrelic: NewRelicBrowser;
interface NewRelicBrowser {
addPageAction(name: string, attributes: any): void;
addRelease(release_name: string, release_id: string): void;
addToTrace(custom_object: any): void;
[core]
excludesfile = /Users/lsacco/.gitignore_global
autocrlf = input
[color]
ui = auto
[credential]
helper = cache
[alias]
lol = log --graph --decorate --all --oneline
s = status