Skip to content

Instantly share code, notes, and snippets.

View egde's full-sized avatar

degert egde

  • Allianz Global Investors
  • Frankfurt
View GitHub Profile
@egde
egde / time-fmt.txt
Created October 21, 2019 09:36
CURL timing format file
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n
@egde
egde / time-fmt.txt
Created October 21, 2019 09:36
# CURL timing format file
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n
# Define LDAP search root, the Global catalog of the domain
$sLDAPSearchRoot="LDAP://YOUR.CORP.ORG"
# The Groupname to looking for
$sGroupName="AD_GROUPNAME"
# The query string
$sSearchStr ="(&(objectCategory=group)(name="+$sGroupName+"))"
# Get the search object
$oSearch=New-Object directoryservices.DirectorySearcher($oADRoot,$sSearchStr)
@egde
egde / SimpleHTTPServerWithUpload.py
Last active October 18, 2016 20:22 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
Based upon: https://gist.github.com/UniIsland/3346170
"""
@egde
egde / .zshrc
Last active November 7, 2016 12:49
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt autocd extendedglob
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/opt/webMethods9/wm5511/.zshrc'