Skip to content

Instantly share code, notes, and snippets.

View enlighter's full-sized avatar

Sushovan Mandal enlighter

View GitHub Profile
@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
@simon-andrews
simon-andrews / addr_gen.py
Last active May 15, 2025 22:16
Bulk Bitcoin Address Generator
#!/usr/bin/python3
import sys
from bitcoin import privtopub, pubtoaddr, random_key
for x in range(int(sys.argv[1])):
key = random_key()
addr = pubtoaddr(privtopub(key))
print("{},{}".format(addr, key))
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active December 18, 2025 20:10
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@EnigmaCurry
EnigmaCurry / bitaddress.py
Created March 16, 2013 18:26
Eliptic Curve / Bitcoin test.
# Just a test to see how Eliptic Curve DSA works in Bitcoin.
# This isn't production code, this was an exploratory process simply
# for me to learn about it.
def egcd(a, b):
if a == 0:
return (b, 0, 1)
else:
g, y, x = egcd(b % a, a)
return (g, x - (b // a) * y, y)
@flatline
flatline / 8puzzle.py
Created February 22, 2011 04:00
An eight-puzzle solver in python
# Solves a randomized 8-puzzle using A* algorithm with plug-in heuristics
import random
import math
_goal_state = [[1,2,3],
[4,5,6],
[7,8,0]]
def index(item, seq):