Skip to content

Instantly share code, notes, and snippets.

Avatar

Prayank prayank23

View GitHub Profile
@prayank23
prayank23 / bip39-bip49.py
Created Sep 23, 2020 — forked from nc50lc/bip39-bip49.py
converts bip39 mnemonic to bip49 first account xprv. requires electrum.
View bip39-bip49.py
#!/usr/bin/python3
#converts bip39 mnemonic to bip49 first account xprv
from electrum import keystore
import sys
mnemonic = ' '.join( sys.argv[1:] )
if keystore.bip39_is_checksum_valid( mnemonic ) == (True,True) :
k = keystore.from_bip39_seed( mnemonic, "", "m/49'/0'/0'" )
print( k.xprv )
else:
print ( "Invalid mnemonic" )
View hextowords.py
#!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2011 thomasv@gitorious
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@prayank23
prayank23 / delete_commits.md
Last active Nov 13, 2020 — forked from dsci/gist:1347672
Delete commits from repository.
View delete_commits.md

git reset --hard commit_hash

git push origin +commit_hash^:branch

git push origin commit_hash:branch -f

commit_hash is the commit you wish to go back to

View pgpx2.txt
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBF1a2M0BDADYOyPHE8LNSNA/qZr0IFJaJQP8OT8LxfkGpvj54lQgUsJGsLRA
P6Fl7cwb1XJxYNNrnByo4UdE5LoodjQf/LE+M80l2LQPV5dX/IhKY8qYua39ifaT
UJZy2IoNdaZc8Z8BsTAZF6xnOq68W6Ty1diwRp7OmpTfPWVt9vHv1tv/wYVg6/X3
qOfHTQqu7+Y32XAYqJ38VqhB9C5tvWt1BBpV/NKwjicc6oE0TYMomFe7N5Z5Ghxs
You can’t perform that action at this time.