Skip to content

Instantly share code, notes, and snippets.

View jwinterm's full-sized avatar

John Winter Murphy jwinterm

View GitHub Profile
@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 / 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")
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 / 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 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 / 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:
@jwinterm
jwinterm / imggen.py
Created December 11, 2017 03:30
Image gen for GRS ticker
# -*- coding: utf-8 -*-
from PIL import Image, ImageChops, ImageFont, ImageDraw
import cmc
import os
def trim(im):
bg = Image.new(im.mode, im.size, im.getpixel((0,0)))
diff = ImageChops.difference(im, bg)
diff = ImageChops.add(diff, diff, 2.0, -100)
bbox = diff.getbbox()
import os
import shutil
import praw
from datetime import datetime
from time import strftime
from userpw import *
try:
reddit = praw.Reddit(client_id=client_id, client_secret=client_secret,
username=username, password=password,
@jwinterm
jwinterm / command.py
Created January 13, 2018 17:40
Telegram tipbot based on reddcoin bot
import json
import codecs
import requests
from bs4 import BeautifulSoup, SoupStrainer
import re
import subprocess
from telegram.ext.dispatcher import run_async
from telegram.ext import Updater
from html import escape

Keybase proof

I hereby claim:

  • I am jwinterm on github.
  • I am jwinterm (https://keybase.io/jwinterm) on keybase.
  • I have a public key ASA-lO1CSIFERH5VsjoSWXCouFOBk1ssYkVp87quCY2v4Ao

To claim this, I am signing this object: