This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # -*- encoding: iso-8859-1 -*- | |
| """ | |
| Python syslog client. | |
| This code is placed in the public domain by the author. | |
| Written by Christian Stigen Larsen. | |
| This is especially neat for Windows users, who (I think) don't |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // What system are we connected to? | |
| systeminfo | findstr /B /C:"OS Name" /C:"OS Version" | |
| // Get the hostname and username (if available) | |
| hostname | |
| echo %username% | |
| // Get users | |
| net users | |
| net user [username] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """Utilities for writing code that runs on Python 2 and 3""" | |
| import operator | |
| import sys | |
| import types | |
| __author__ = "Benjamin Peterson <benjamin@python.org>" | |
| __version__ = "1.2.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is a super **SIMPLE** example of how to create a very basic powershell webserver | |
| # 2019-05-18 UPDATE — Created by me and and evalued by @jakobii and the comunity. | |
| # Http Server | |
| $http = [System.Net.HttpListener]::new() | |
| # Hostname and port to listen on | |
| $http.Prefixes.Add("http://localhost:8080/") | |
| # Start the Http Server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Get info about all Contexts in ldap | |
| ldapsearch -x -H ldap://localhost -b "" -s base configContext namingContexts monitorContext | |
| # display cn=config structures and data | |
| ldapsearch -Y EXTERNAL -H ldapi:/// -b "cn=config" | |
| # or | |
| slapcat -b cn=config > config.ldiff | |
| # modify config |
NewerOlder

