Skip to content

Instantly share code, notes, and snippets.

const ldap = require("ldapjs");
const server = ldap.createServer();
server.bind("", (req, res, next) => {
console.log(`Bind attempt with ${req.dn.toString()}`);
res.end();
return next();
});
@deadcheat
deadcheat / optionalstring.go
Created June 15, 2016 14:41
sql.NullStringをjsonにきれいに入れたり出したりするための何か
// localtype パッケージ
// アプリケーションローカルの型はここに格納したい
package localtype
import (
"database/sql"
"database/sql/driver"
"encoding/json"
)
@XVilka
XVilka / TrueColour.md
Last active June 10, 2024 17:21
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!