Skip to content

Instantly share code, notes, and snippets.

@vlad-bezden
vlad-bezden / add_user_to_group.py
Created April 29, 2016 20:50
Example on how to add user to the group in Windows using Python
#
# Example on how to add user to the group in Python
#
import win32net
def add_user_to_group(domain, group, user):
user_group_info = {
@BrockA
BrockA / waitForKeyElements.js
Created May 7, 2012 04:21
A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);