Skip to content

Instantly share code, notes, and snippets.

const LdapAuth = require('ldapauth-fork')
const pify = require('pify')
// https://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/
const options = {
'url': 'ldap://ldap.forumsys.com:389',
'bindDN': 'cn=read-only-admin,dc=example,dc=com',
'bindCredentials': 'password',
'searchBase': 'dc=example,dc=com',
'searchFilter': 'uid={{username}}'
@DecentM
DecentM / ffmpeg-vrc.sh
Last active August 14, 2022 11:26
Convert videos with FFmpeg to VRChat video player friendly format
#!/bin/sh -e
ffmpeg -i "$1" -c:v h264 -b:v 5M -maxrate 9M -bufsize 1M -preset veryslow -movflags +faststart -pix_fmt yuv420p -c:a aac -ab 1536k -strict 2 -threads 8 "$2"
using UnityEditor;
using UnityEngine;
public sealed class ExampleClass : EditorWindow
{
private static readonly string[] mList =
{
"AboutWIndowLicenseLabel" ,
"AC LeftArrow" ,
"AC RightArrow" ,
@DecentM
DecentM / decentm-cla.md
Created January 29, 2023 12:50
DecentM - Contributor License Agreement

DecentM's Individual Contributor License Agreement

Thank you for your interest in contributing to my project! This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to the repository. If you have any questions respecting this Agreement, please contact decentm+contrib@decentm.com.

You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.

Copyright License. You hereby grant, and agree to grant, to DecentM a non-exclusive, perpetual, irrevocable, worldwide, fully-paid, royalty-free, transferable copyright license to reproduce, prepare derivative works of, publicly display, pu