Skip to content

Instantly share code, notes, and snippets.

View jujum4n's full-sized avatar

Justin Chase jujum4n

View GitHub Profile
@jujum4n
jujum4n / ivadInitSketch.ino
Created August 7, 2017 05:16
emac IVAD init Ardunio Sketch
#include <Wire.h>
void setup() {
// put your setup code here, to run once:
Wire.begin(); // join i2c bus (address optional for master)
int led = 13;
pinMode(led, OUTPUT);
for (int i = 0; i < 7; i++)
{
@jujum4n
jujum4n / roulette.py
Created September 29, 2015 21:37
Simple Roulette Simulator/Martingale Simulator I programmed
import random
#Global Variables for running simulations
T = 1000
B = 2
R = 0
#Definition of the Colors and their corresponding Numbers
RED = [1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36]
BLACK = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35]
@jujum4n
jujum4n / BitcoinKeypairGen.py
Last active June 7, 2022 06:01
Python Bitcoin Keypair Generator
# By: Justin Chase
# Description: Based heavily on PYBITCOINTOOLS - https://github.com/vbuterin/pybitcointools By: vbuterin
# Version: 0.01
import sys, re
import binascii
import os
import hashlib
import random
import time
@jujum4n
jujum4n / getaddrs_onename.py
Last active August 29, 2015 14:05
Usage of Onenamepy
import onename
def getAllBTCAddrs(FILEPATHNAME,OUTPUTFILEPATH):
f = open(FILEPATHNAME, 'r')
o = open(OUTPUTFILEPATH, 'w')
for line in f:
data=getOneNameJson(line.rstrip('\r\n'))
BTCADDR=getBitcoin(data)
print line.rstrip('\r\n')+","+str(BTCADDR)+"\n"
#o.write(line.rstrip('\r\n')+","+str(BTCADDR)+"\n")
@jujum4n
jujum4n / gist:14abae9398c7a1b1f822
Created August 19, 2014 01:15
Verifying that +juju is my Bitcoin username. You can send me #bitcoin here: https://onename.io/juju
Verifying that +juju is my Bitcoin username. You can send me #bitcoin here: https://onename.io/juju
@jujum4n
jujum4n / Hashlibfun.py
Created July 25, 2014 20:28
Hashlibfun.py
import hashlib
def chaincrypt(plaintext):
#CIPHERTEXT=hashlib.md5(plaintext)
#CIPHERTEXT=hashlib.sha1(plaintext)
CIPHERTEXT=hashlib.sha512(plaintext)
CIPHERTEXT=hashlib.sha224(CIPHERTEXT.hexdigest())
CIPHERTEXT=hashlib.sha256(CIPHERTEXT.hexdigest())
CIPHERTEXT=hashlib.sha384(CIPHERTEXT.hexdigest())
print CIPHERTEXT.hexdigest()
@jujum4n
jujum4n / LinuxCoinbaseUSDChecker.py
Last active August 29, 2015 14:04
ColoredLinuxCoinbaseUSDChecker.py
import json
import urllib2
import datetime
import time
from termcolor import colored
PRICE=610
STAKE=1000
def getprice():
@jujum4n
jujum4n / CoinbaseUSDChecker.py
Created July 15, 2014 03:04
Gets the coinbase price in USD every 5 minutes, if the price is below a certain value it will beep then check again every 10 seconds and beep.
import json
import urllib2
import datetime
import time
import winsound
PRICE=610
def getprice():
data=json.load(urllib2.urlopen("https://coinbase.com/api/v1/prices/spot_rate?currency=USD"))
import re
import hashlib
import base58
from pycoin.ecdsa import generator_secp256k1, public_pair_for_secret_exponent
def bytetohex(byteStr):
return ''.join( [ "%02X" % x for x in byteStr ] ).strip()
litecoin = [b"\x30", b"\xb0"]
bitcoin = [b"\x00", b"\x80"]