- cron entry to run this script every x minues
- A Redis instance
- A Sendgrid API key
- A Slack webhook
This file contains 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 * as Req from 'request-promise-lite'; | |
import * as DashD from './RPCDefinitions'; | |
/** | |
* Each call returns this | |
*/ | |
export interface CallResult<A> { | |
readonly result?: A; | |
readonly error?: any; | |
readonly id: number; |
This file contains 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 psycopg2 | |
import time | |
import selenium | |
from selenium import webdriver | |
import openpyxl | |
from openpyxl import load_workbook | |
import subprocess | |
from email.mime.text import MIMEText | |
from email.mime.application import MIMEApplication | |
from email.mime.multipart import MIMEMultipart |
This file contains 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 requests | |
import pandas as pd | |
import json | |
import datetime | |
import time | |
import timeit | |
from bin.DashInfo import DataPreparation | |
# For calculating vote snapshots |
This file contains 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 requests | |
import seaborn as sns | |
import pandas as pd | |
import os | |
import time | |
from lib.mn_count import get_cur_mn_count | |
nexus_hash = "7877338b947d7fe25d4dcc80979ee1f918736596677188ebadc79e5b9009d847" | |
This file contains 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 bin.db_functions import IntelDatabase | |
from bin.DashInfo import DataPreparation | |
test_prop_hash = '7877338b947d7fe25d4dcc80979ee1f918736596677188ebadc79e5b9009d847' | |
def check_for_changed_votes(): | |
node_dict = {} | |
votes_dict = IntelDatabase.get_votes_for_hash(test_prop_hash) | |
DataPreparation.write_json(votes_dict, 'votes_data') |
This file contains 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 os | |
import sys | |
import time | |
import json | |
from pprint import pprint | |
from json import JSONDecodeError | |
data_dir = os.path.abspath("G:\hyperscratch\Dash Network Stats") |
This file contains 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 python | |
import binascii | |
import zmq | |
import struct | |
import csv | |
import time | |
port = 28332 | |
This file contains 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 requests | |
import json | |
from json import JSONDecodeError | |
import random | |
from multiprocessing import Pool | |
from functools import partial | |
class Insight(object): | |
self.round_robin_url = "" |
This file contains 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 bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException | |
import time, os, sys | |
print("Starting Spam Program") | |
password = "d9060549bd53cda3fc0f891b5f4a586271d5ee6a180ade1ea2bfe3985ccc7b01" | |
user = "6594052d2802c63e763caad3afdd5a2babcdacc4daf47277ca91d4d050d25d16" | |
def rpc_conn(user=user, password=password): | |
rpc_conn = AuthServiceProxy("http://%s:%s@localhost:9998" % (user, password)) |