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
| # LogName can be any available event log | |
| # or it can be replaced with "-Path" and a file path | |
| # The resulting JSON can then be POSTed to a webserver of your choice | |
| Get-WinEvent -LogName "Security" -MaxEvents 1 | ConvertTo-Json |
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
| SERVER=100.100.100.100 | |
| USER=username | |
| PROXY="$USER@$SERVER" | |
| function setProxy() { | |
| export http_proxy=http://127.0.0.1:8888/ | |
| export https_proxy=$http_proxy | |
| export ftp_proxy=$http_proxy | |
| export rsync_proxy=$http_proxy | |
| export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com" |
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 python3 | |
| ''' Convert an XML-based TextMate bundle to JSON format ''' | |
| import argparse | |
| import json | |
| import xml.etree.ElementTree as ET | |
| parser = argparse.ArgumentParser(description='Convert XML TM bundle to JSON TM bundle') | |
| parser.add_argument('input', type=argparse.FileType('r')) | |
| parser.add_argument('-o', '--output', type=argparse.FileType('w')) |
OlderNewer