Skip to content

Instantly share code, notes, and snippets.

View jwinterm's full-sized avatar

John Winter Murphy jwinterm

View GitHub Profile
@jwinterm
jwinterm / GrsPriceTickerMain.py
Created December 11, 2017 03:29
Main price ticker file
import imggen
import praw
from datetime import datetime
from userpw import *
try:
tickerimg = imggen.imggen()
with open('pyticker.log', 'a') as f:
f.write("{} - successfully created ticker image\n".format(str(datetime.now())))
except:
import sopel.module
import time
nicklist = {}
paylist = {}
@sopel.module.event('JOIN')
@sopel.module.rule('.*')
def greeting(bot, trigger):
if trigger.sender == '#monero-pools' and trigger.nick != bot.nick:
@jwinterm
jwinterm / BlocksWithVersion.py
Last active March 5, 2017 02:13
Count blocks mined by version in current signalling period for Vertcoin segwit update
import bitcoin.rpc
import sys
import binascii
import bitcoin.core
# import matplotlib.pyplot as plt
import datetime
# Setup proxy for communicating with daemon
rpc = bitcoin.rpc.Proxy(btc_conf_file="PATH_TO_VERTCOIN.CONF_FILE_GOES_HERE")
import bitcoin.rpc
import sys
import binascii
import bitcoin.core
import matplotlib.pyplot as plt
import datetime
# Setup proxy for communicating with daemon
rpc = bitcoin.rpc.Proxy(btc_conf_file="PATH_TO_YOUR_CONF_FILE")
@jwinterm
jwinterm / lastblocks.py
Last active December 13, 2016 14:36
Script to get block distribution over last 'x' blocks on Bitcoin clone
import bitcoin.rpc
import sys
import binascii
import bitcoin.core
import matplotlib.pyplot as plt
import datetime
# Setup proxy for communicating with daemon
rpc = bitcoin.rpc.Proxy(btc_conf_file="YOUR_CONF_FILE_LOCATION_HERE")
@jwinterm
jwinterm / btcTalkThreadUserCount.py
Created October 5, 2014 17:23
Python script to count number of users on btctalk thread
import requests as req
# URL of the first page of target BTCtalk thread
targetURL = "https://bitcointalk.org/index.php?topic=788916.0"
# List variables used for collecting information
masterList = []
tempList = []
oldTempList = []
@jwinterm
jwinterm / MoneroPoolHash.py
Last active March 30, 2020 07:11
Monero pool hashrate checker
#!/usr/bin/env python
import requests
import json
import re
import datetime
import sys
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
from math import cos, sin, pi