Skip to content

Instantly share code, notes, and snippets.

@Stoner19
Stoner19 / gist:7b2885b3bcc8d5691e76455f2fff4fb6
Last active December 29, 2020 23:39 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone <git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git>

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream <git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git>
git fetch upstream
@Stoner19
Stoner19 / Idena Proof - I rock :fire:
Created March 4, 2020 21:52
Idena Proof - I rock 🔥
Idena Proof - I rock :fire:

Tezori/Galleon wallet file reader

@Stoner19
Stoner19 / mochi.sh
Last active April 12, 2019 20:08
simple bash script to install and/or update https://github.com/mochimodev/mochimo and start a NON-MINING node
#!/bin/bash
if [ -d $HOME/mochimo ];
then
echo "Mochimo directory already exists, checking for new commits and pulling the latest source";
cd $HOME/mochimo && git pull
echo "Starting gomochi in screen";
cd $HOME/mochimo/bin/ && screen -dmS mochimo ./gomochi d -n
else
echo "Installing dependencies and pulling latest Mochimo source";
echo "sudo password may be required";
@Stoner19
Stoner19 / gist:7f0483cfec52a95c323bedb200777a6a
Last active September 13, 2019 15:50
Boost 1.58 install
su -
(input root password)
wget https://sourceforge.net/projects/boost/files/boost/1.70.0/boost_1_70_0.tar.gz
tar -xzvf boost_1_70_0.tar.gz
cd boost_1_70_0
./bootstrap.sh
./b2
./b2 install
@Stoner19
Stoner19 / gist:3c327896f7bf4cbfb3707e38c07134ef
Created December 22, 2018 04:32
OpenSSL 1.0.2a install
wget http://www.openssl.org/source/openssl-1.0.2a.tar.gz
tar -xvzf openssl-1.0.2a.tar.gz
cd openssl-1.0.2a
./config --prefix=/usr/
make
sudo make install
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace Base58ReverseEncoder
{

Keybase proof

I hereby claim:

  • I am stoner19 on github.
  • I am stoner19 (https://keybase.io/stoner19) on keybase.
  • I have a public key ASBg3tZYOqwmUTfpZcllE4sJSNyEHfT1j3dCKLzF4SnzKgo

To claim this, I am signing this object:

@Stoner19
Stoner19 / AltCoin_privkey_recovery.md
Last active February 8, 2021 06:15
altcoin key recovery using pywallet

These are the steps to properly recover altcoin privkeys if you end up with a corrupt wallet.dat
I was unable to use the otherversion=<version number> for some reason so the idea here is to change the python script to suit the needs of your specific altcoin.
Download pywallet: git clone https://github.com/jackjack-jj/pywallet.git
Find decimal prefix of your altcoin.
I've successfully used https://github.com/MichaelMure/WalletGenerator.net to find my altcoin prefix.
Follow the steps in his wiki in order to determine your address prefix decimal.
You'll need to know your privkey prefix as well which you will also be able to get using the WalletGenerator.
You'll also likely need to find a hex to decimal converter for this.
After finding your altcoin decimal and privkey prefixes, edit the pywallet.py file in your pywallet directory
Change [line 75](https://github.com/jackjack-jj/pywall

@Stoner19
Stoner19 / gist:216dc3b7117d3847c95d1d6bfa00fe3a
Last active September 6, 2019 18:24
Update fork from master

uninstall dpkg

sudo apt --purge remove libboost-dev sudo apt --purge remove libboost-all-dev sudo apt --purge autoremove libboost-all-dev

to uninstall the version which we installed from source

sudo rm -rf /usr/lib/libboost_* sudo rm -rf /usr/include/boost

wget https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.tar.gz