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
def readlog(): | |
log = open('./seaflog') | |
loglines = log.read() | |
for line in loglines: | |
print line.split() | |
OUTPUT: | |
['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
ERR [20170407-19:12:19.894] thr=134 paramiko.transport: Traceback (most recent call last): | |
ERR [20170407-19:12:19.894] thr=134 paramiko.transport: File "/usr/local/lib/python2.7/dist-packages/paramiko/transport.py", line 1749, in run | |
ERR [20170407-19:12:19.894] thr=134 paramiko.transport: self._check_banner() | |
ERR [20170407-19:12:19.894] thr=134 paramiko.transport: File "/usr/local/lib/python2.7/dist-packages/paramiko/transport.py", line 1897, in _check_banner | |
ERR [20170407-19:12:19.894] thr=134 paramiko.transport: raise SSHException('Error reading SSH protocol banner' + str(e)) | |
ERR [20170407-19:12:19.894] thr=134 paramiko.transport: SSHException: Error reading SSH protocol banner | |
ERR [20170407-19:12:19.894] thr=134 paramiko.transport: | |
DEB [20170407-19:12:22.458] thr=3 paramiko.transport: Received global request "[email protected]" | |
DEB [20170407-19:12:22.458] thr=3 paramiko.transport: Rejecting "[email protected]" global request from 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
dev_sda1 = boto.ec2.blockdevicemapping.EBSBlockDeviceType() | |
dev_sda1.size = 25 | |
bdm = boto.ec2.blockdevicemapping.BlockDeviceMapping() | |
bdm['/dev/sda1'] = dev_sda1 | |
req = conn.request_spot_instances(price=max_bid,image_id='ami-ea26f684',instance_type=servtype[cnt],key_name=key,availability_zone_group='ap-northeast-2',network_interfaces=interfaces,user_data=ud,block_device_map = [bdm])[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
09-18 09:12:35.613 13602 13602 D SecurityService: ------ service create------ | |
09-18 09:12:35.614 13602 13602 D SecurityService: ------ service on bind------ | |
09-18 09:12:35.616 5229 29479 I SafepayService: onStartScan | |
09-18 09:12:35.617 5229 29479 I PaySafetyCheckManager: WIFI | |
09-18 09:12:35.618 5229 29479 I PaySafetyCheckManager: SYSTEM | |
09-18 09:12:35.654 11999 11999 D HOOK : AssetManager isUpToDate:true | |
09-18 09:12:35.669 1677 4250 D ActivityTrigger: ActivityTrigger activityStopTrigger | |
09-18 09:12:35.677 1677 4250 W ActivityManager: Unbind failed: could not find connection for android.os.BinderProxy@dffff5d | |
09-18 09:12:35.695 1677 12467 I WindowManager: Destroying surface Surface(name=com.miui.home/com.miui.home.launcher.Launcher) called by com.android.server.wm.WindowStateAnimator.destroySurface:-1 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:-1 com.android.server.wm.WindowState.destroyOrSaveSurface:-1 com.android.server.wm.AppWindowToken.destroySurfaces:-1 com.android.server.wm |
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
ktech@iZj6cikugkv8h2mdz5gfvmZ:~/dashcore-0.12.3/bin# ./dash-cli getinfo | |
{ | |
"version": 120300, | |
"protocolversion": 70208, | |
"walletversion": 61000, | |
"balance": 3001.53445299, | |
"privatesend_balance": 0.00000000, | |
"blocks": 33111, | |
"timeoffset": 0, | |
"connections": 8, |
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
================================================================================================ FAILURES ================================================================================================= | |
_______________________________________________________________________________________________ test_dashd ________________________________________________________________________________________________ | |
def test_dashd(): | |
config_text = DashConfig.slurp_config_file(config.dash_conf) | |
network = 'mainnet' | |
is_testnet = False | |
genesis_hash = u'00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6' | |
for line in config_text.split("\n"): | |
if line.startswith('testnet=1'): |
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
cat ~/.dashcore/dash.conf | |
testnet=1 | |
rpcuser=test | |
rpcpass=test | |
server=1 | |
daemon=1 | |
rpcallow=127.0.0.1 | |
rpcallow=222.166.152.93 | |
cat ~/.dashcore/sentinel/sentinel.conf |
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@ktechmac ~]# pip install --upgrade pip | |
Exception: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main | |
status = self.run(options, args) | |
File "/usr/lib/python3.6/site-packages/pip/commands/install.py", line 272, in run | |
with self._build_session(options) as session: | |
File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 72, in _build_session | |
insecure_hosts=options.trusted_hosts, | |
File "/usr/lib/python3.6/site-packages/pip/download.py", line 329, in __init__ |
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
vars(mention) | |
{'first_message': None, 'first_message_name': None, '_info_params': {}, 'subreddit': Subreddit(display_name='glctip'), '_submission': None, 'likes': None, 'id': u'dt5mfj0', 'subject': u'username mention', 'was_comment': True, 'score': 1, '_fetched': True, 'author': Redditor(name='ktechmidas'), 'num_comments': 2, 'parent_id': u't3_7sl4xu', 'subreddit_name_prefixed': u'r/glctip', 'new': True, 'body': u'/u/glrctip 1GLC ktechmidas', 'link_title': u'test3', 'dest': u'glrctip', 'body_html': u'<!-- SC_OFF --><div class="md"><p><a href="/u/glrctip">/u/glrctip</a> 1GLC ktechmidas</p>\n</div><!-- SC_ON -->', '_replies': [], '_reddit': <praw.reddit.Reddit object at 0x7f4e3e72d350>, '_mod': None, 'name': u't1_dt5mfj0', 'created': 1516805181.0, 'created_utc': 1516776381.0, 'context': u'/r/glctip/comments/7sl4xu/test3/dt5mfj0/?context=3', 'distinguished': None} |
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 praw | |
import sys | |
import prawcore | |
from decimal import * | |
import argparse | |
import random | |
from utils import utils | |
import datetime | |
utils = utils() |