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 winreg | |
def regkey_value(path, name="", start_key = None): | |
if isinstance(path, str): | |
path = path.split("\\") | |
if start_key is None: | |
start_key = getattr(winreg, path[0]) | |
return regkey_value(path[1:], name, start_key) | |
else: | |
subkey = path.pop(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
{1!} | |
cscript /nologo wget.js http://example.com | |
This is the code: | |
[in vbs] | |
var WinHttpReq = new ActiveXObject("WinHttp.WinHttpRequest.5.1"); | |
WinHttpReq.Open("GET", WScript.Arguments(0), /*async=*/false); | |
WinHttpReq.Send(); | |
WScript.Echo(WinHttpReq.ResponseText); |
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
pactl set-sink-volume $SINK $VOLUME - volume value setting |
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 subprocess | |
ossl_process = subprocess.Popen('openssl ciphers'.split()) | |
ossl_process = subprocess.Popen('openssl ciphers'.split(), stdout=subprocess.PIPE) | |
ossl_process | |
ossl_process.stdout | |
data = ossl_process.stdout.read() | |
data | |
print data.split(':') |
This file has been truncated, but you can view the full file.
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
UEsDBAoAAAAAADmoq0gAAAAAAAAAAAAAAAAOABwAT3BlblNTTC1XaW4zMi9VVAkAA45zM1f2czNX | |
dXgLAAEE6AMAAAToAwAAUEsDBAoAAAAAADKoq0gAAAAAAAAAAAAAAAASABwAT3BlblNTTC1XaW4z | |
Mi9saWIvVVQJAAOAczNX9IgzV3V4CwABBOgDAAAE6AMAAFBLAwQUAAAACACBjaNIX0DfNRYCAAA+ | |
BwAAGwAcAE9wZW5TU0wtV2luMzIvbGliL251cm9uLmxpYlVUCQADMrkoV4BzM1d1eAsAAQToAwAA | |
BOgDAABTtEksSs6w49JXQAWGJmZGxkZGZiZGqOIGMHkzmEQCFwMDAzsDA+M5BgbmDwwMrCoMDGy3 | |
oLgIhOPjPX0D/INC4l1cg52DPANC/IPi80qL8vMY4uP9Qn18MKUZ6sHyENkQj1A/73gXxxBHoPrM | |
3IL4+LL45IzU5GwGBAMinpSZlxKfmpeemZfKgMIh2XfmCN+xAr13jpGB4QMzA4MKkHOLjYGhiA3s | |
ZQZGBiYGVgYWMGZmIMOf2ByO5kcUOZgojvABi+ql5OToE+dPEwtTuD99GJkZLrlqhrMD/crBAAaM | |
eimpSaXpKsEMUGAPxD0MqMCBQcBJLzMlsSRRxQgmJgLEp4H4PpTPDFZncACqzgymDpR0/iKpg5in | |
cIAJSAswcIL5nHBPqTMIC7BDTQMBHiDeOk/INzO5KL84P61EQSNIU8HH08+bAQvggWpkB/NYwCwB |
This file has been truncated, but you can view the full file.
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
UEsDBAoAAAAAADmoq0gAAAAAAAAAAAAAAAAOABwAT3BlblNTTC1XaW4zMi9VVAkAA45zM1f2czNX | |
dXgLAAEE6AMAAAToAwAAUEsDBAoAAAAAADKoq0gAAAAAAAAAAAAAAAASABwAT3BlblNTTC1XaW4z | |
Mi9saWIvVVQJAAOAczNX9IgzV3V4CwABBOgDAAAE6AMAAFBLAwQUAAAACACBjaNIX0DfNRYCAAA+ | |
BwAAGwAcAE9wZW5TU0wtV2luMzIvbGliL251cm9uLmxpYlVUCQADMrkoV4BzM1d1eAsAAQToAwAA | |
BOgDAABTtEksSs6w49JXQAWGJmZGxkZGZiZGqOIGMHkzmEQCFwMDAzsDA+M5BgbmDwwMrCoMDGy3 | |
oLgIhOPjPX0D/INC4l1cg52DPANC/IPi80qL8vMY4uP9Qn18MKUZ6sHyENkQj1A/73gXxxBHoPrM | |
3IL4+LL45IzU5GwGBAMinpSZlxKfmpeemZfKgMIh2XfmCN+xAr13jpGB4QMzA4MKkHOLjYGhiA3s | |
ZQZGBiYGVgYWMGZmIMOf2ByO5kcUOZgojvABi+ql5OToE+dPEwtTuD99GJkZLrlqhrMD/crBAAaM | |
eimpSaXpKsEMUGAPxD0MqMCBQcBJLzMlsSRRxQgmJgLEp4H4PpTPDFZncACqzgymDpR0/iKpg5in | |
cIAJSAswcIL5nHBPqTMIC7BDTQMBHiDeOk/INzO5KL84P61EQSNIU8HH08+bAQvggWpkB/NYwCwB |
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
2017 netcat eth0 | |
2018 netstat | |
2019 netstat | grep openss | |
2020 netstat | grep open | |
2021 ls | |
2022 wine openssl.exe req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes | |
2023 wine openssl.exe s_server -key key.pem -cert cert.pem -accept 44330 -www | |
2024 echo hello | wine openssl.exe s_server -key key.pem -cert cert.pem -accept 44330 -www | |
2025 echo hello | wine openssl.exe s_server -key key.pem -cert cert.pem -ciphers RC4-SHA -accept 44330 -www | |
2026 echo hello | wine openssl.exe s_server -key key.pem -cert cert.pem -ciphers RC4-SHA -accept 44330 -www |
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
Log output | |
The area below shows the logging calls in your code. These correspond to a single row within the CloudWatch log group corresponding to this Lambda function. Click here to view the CloudWatch log group. | |
START RequestId: 2644abca-b08d-11e5-a8cb-e1cccca020f0 Version: $LATEST | |
Unable to import module 'lambda_function': No module named lambda_function | |
END RequestId: 2644abca-b08d-11e5-a8cb-e1cccca020f0 | |
REPORT RequestId: 2644abca-b08d-11e5-a8cb-e1cccca020f0 Duration: 72.41 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 8 MB |
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
for root, dirnames, filenames in os.walk('btctradeapicomua'): | |
for filename in fnmatch.filter(filenames, "*.py"): | |
filepath = os.path.join(root, filename) | |
print filepath | |
""" | |
btctradeapicomua/__init__.py | |
btctradeapicomua/docs/source/conf.py | |
btctradeapicomua/workers/collector.py | |
btctradeapicomua/workers/__init__.py | |
btctradeapicomua/examples/collector.py |
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
from __future__ import with_statement # for 2.5 | |
# SOURCE : http://stackoverflow.com/questions/2463770/python-in-memory-zip-library/19722365#19722365 | |
import zipfile | |
try: | |
from cStringIO import StringIO | |
except ImportError: | |
from io import BytesIO as StringIO |