Skip to content

Instantly share code, notes, and snippets.

View Chaz6's full-sized avatar

Chris Hills Chaz6

View GitHub Profile
@Chaz6
Chaz6 / tumblr-get.py
Created August 27, 2016 12:37
Download images from a tumblr blog
#!/usr/bin/python
import os, sys
import urlparse
from shutil import copyfileobj
from urllib import urlopen, unquote
from xml.etree import ElementTree as ET
from socket import error as socket_error
import socket
@Chaz6
Chaz6 / unzip-recurse.py
Created December 28, 2014 15:57
Extract files recursively using python
#!/usr/bin/env python
import errno
import os
import sys
import subprocess
#-----------------------------------------------------------------------------
def main():
fileNames = sys.argv[1:]
@Chaz6
Chaz6 / GetNewADSObjects.vbs
Created October 31, 2012 17:39
List newly created objects in an Active Directory domain
On Error Resume Next
Const ADS_SCOPE_SUBTREE = 2
Dim strTimestamp
strTimestamp = "20120901000000.0Z"
set objRootDSE = GetObject("LDAP://RootDSE")
RootDN = objRootDSE.Get("defaultNamingContext"))
Set objConnection = CreateObject("ADODB.Connection")
@Chaz6
Chaz6 / GetOrgChartFromActiveDirectory.pl
Created October 19, 2012 10:19
Create organizational chart from Active Directory
#!/usr/bin/perl -w
########################################################################################
# This script connects to a domain controller and produces an organizational chart.
#
# It is based on the script at the following page:-
# http://thelowedown.wordpress.com/2008/05/27/generate-calltree-from-active-directory/
#
# Chris Hills ([email protected])
# 2012/10/19