Skip to content

Instantly share code, notes, and snippets.

# System Info:
1. `uname -a`:
Linux dlaptop 4.18.0-1-MANJARO #1 SMP PREEMPT Mon Jul 16 06:26:07 UTC 2018 x86_64 GNU/Linux
2. `lsb_release -a`:
LSB Version: n/a
Distributor ID: ManjaroLinux
Description: Manjaro Linux
Searching for terminado
Reading https://pypi.python.org/simple/terminado/
Best match: terminado 0.8.1
Downloading https://files.pythonhosted.org/packages/67/84/ce0ebd0f60e1cbe040f8e065eef7063855d59d9cf5e6438b3f8439fc7e15/terminado-0.8.1.tar.gz#sha256=55abf9ade563b8f9be1f34e4233c7b7bde726059947a593322e8a553cc4c067a
Processing terminado-0.8.1.tar.gz
Writing /tmp/easy_install-kz_hozdu/terminado-0.8.1/setup.cfg
Running terminado-0.8.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-kz_hozdu/terminado-0.8.1/egg-dist-tmp-5xwou0_v
error: Setup script exited with error: can't copy 'terminado/tests': doesn't exist or not a regular file
ImageId='ami-a414b9ca',InstanceType='t2.medium',KeyName='dl-korea',SubnetId='subnet-519ac339',UserData=#!/bin/bash
apt update
apt install ansible
,MaxCount=1,MinCount=1
(build-docker-containers-a_cTxfT_) [monotoko@homesys build-docker-containers]$ python awb.py build test 0 docker
['i-0354f4397c5f6166e']
ImageId='ami-a414b9ca',InstanceType='t2.medium',KeyName='dl-korea',SubnetId='subnet-519ac339',MaxCount=1,MinCount=1
> /home/monotoko/Documents/code/build-docker-containers/awb.py(41)main()
-> response = self.client.run_instances(base)
(Pdb) type(base)
<class 'str'>
(Pdb) print(base)
ImageId='ami-a414b9ca',InstanceType='t2.medium',KeyName='dl-korea',SubnetId='subnet-519ac339',MaxCount=1,MinCount=1
(Pdb) response = self.client.run_instances(base)
self.utils.config['other']['cryptos']
{u'1': u'garlicoin', u'2': u'dash'}
for coin in self.utils.config['other']['cryptos']:
print coin #Gives me 1
self.utils.config['other']['cryptos']
{u'1': u'garlicoin', u'2': u'dash'}
for coin in self.utils.config['other']['cryptos']:
print coin #Gives me 1
import praw
import sys
import prawcore
from decimal import *
import argparse
import random
from utils import utils
import datetime
utils = utils()
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}
[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__
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