Skip to content

Instantly share code, notes, and snippets.

View mattkrins's full-sized avatar
🇺🇦
ukr

Matt Krins mattkrins

🇺🇦
ukr
View GitHub Profile
var SUFFIX = 'dc=vis,dc=net';
var pfUsername = '<ADMINDN>';
var pfPassword = '<ADMINPW>';
var url = 'ldaps://vis.res.eq.edu.au';
var filter = '(uid=mjwoo1)';
var oldPassword = "oldpw";
var newPassword = "newpw";
var Client, testClient, anon_client;
@jimmywarting
jimmywarting / readme.md
Last active July 23, 2024 18:45
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@bellbind
bellbind / main.js
Last active April 27, 2024 04:12
[electron] Tray launcher example
"use strict";
// [run the app]
// $ npm install electron
// $ ./node_modules/.bin/electron .
const {app, nativeImage, Tray, Menu, BrowserWindow} = require("electron");
let top = {}; // prevent gc to keep windows
@kzykhys
kzykhys / printWord.js
Last active August 4, 2022 02:51
Print MS Word in Node.js
/*
* Print Word document on Windows
*
* 1. Get the Word executable path
* > ftype Word.Document.8
* 2. Print silently
* > %WORD% /q /n /mfileprintdefault /mfileexit %FILE%
*/
var child_process = require('child_process');
@mattrude
mattrude / changepassword.php
Created October 31, 2010 23:49
LDAP PHP Change Password Page
<?php
/**
* LDAP PHP Change Password Webpage
* @author: Matt Rude <http://mattrude.com>
* @website: http://technology.mattrude.com/2010/11/ldap-php-change-password-webpage/
*
*
* GNU GENERAL PUBLIC LICENSE
* Version 2, June 1991