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
| [root@cac80a94d574 html]# diff mydoxygenconfig.original mydoxygenconfig | grep ">" | |
| > OUTPUT_DIRECTORY = /var/www/html/doxygenout | |
| > EXTRACT_ALL = YES | |
| > EXTRACT_PRIVATE = YES | |
| > EXTRACT_PACKAGE = YES | |
| > EXTRACT_STATIC = YES | |
| > EXTRACT_LOCAL_METHODS = YES | |
| > FILE_PATTERNS = *.php *.inc *.module | |
| > RECURSIVE = YES | |
| > HAVE_DOT = YES |
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
| # Read super large byte by byte. Useful for when logs are full of null byte or CRAZY long lines. | |
| import time, sys | |
| def readBytes(filename, stopAt=0): | |
| # Byte by Byte | |
| linecnt = 0 | |
| charlist = [] | |
| with open(filename, "rb") as f: |
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
| import hug, threading, subprocess, uuid | |
| """ | |
| # Requires, | |
| yum install -y rh-python36-python rh-python36-python-pip | |
| /opt/rh/rh-python36/root/bin/pip3 install hug | |
| # Run with, | |
| /opt/rh/rh-python36/root/bin/hug -f straceinject.py -ho 127.0.0.1 -p 1337 | |
| """ |
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
| # In case you wanted to parse `smart -A ...` | |
| smartAttributesPattern = "".join([ | |
| "\n *", # Ignore: Potential whitespace in front of ID# | |
| "([0-9]+)", # Capture: ID# field | |
| "[^A-Z]+", # Ignore: Whitespace before the ATTRIBUTE_NAME | |
| "([a-zA-Z_\-]+)", # Capture: ATTRIBUTE_NAME field | |
| "[^0-9a-fx]+", # Ignore: Whitespace before the FLAG | |
| "([0-9a-fx]+)", # Capture: FLAG field | |
| "[^0-9]+", # Ignore: Whitespace before the VALUE | |
| "([0-9]+)", # Capture: VALUE field |
NewerOlder