Skip to content

Instantly share code, notes, and snippets.

View marceloneil's full-sized avatar

Marcel O'Neil marceloneil

View GitHub Profile
@marceloneil
marceloneil / index.js
Created November 29, 2020 21:50
Change xpub prefix
const bs58 = require('bs58')
const shajs = require('sha.js')
const start = "xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8"
const startBuf = bs58.decode(start)
// overwrite with new base58 key prefix. these prefixes can be found in chainparams.cpp for bitcoin forks:
// https://github.com/bitcoin/bitcoin/blob/7ae86b3c6845873ca96650fc69beb4ae5285c801/src/chainparams.cpp#L134
// https://github.com/dogecoin/dogecoin/blob/0b46a40ed125d7bf4b5a485b91350bc8bdc48fc8/src/chainparams.cpp#L170
const prefix = Buffer.from("02facafd", "hex")
@marceloneil
marceloneil / hackathons.txt
Last active April 18, 2020 16:29
Hackathons
2015 (4)
Tech Retreat
Get Your Bot On!
Local Hack Day
Hack Western
2016 (11)
Hack The 6ix 3rd
UofTHacks Top 10
NHacks
@marceloneil
marceloneil / address
Created August 25, 2017 15:42
Eth Address
0x9a065D8233CA88b3B2BDbD4BA84Fe23fFFb48076
@marceloneil
marceloneil / keybase.md
Created December 28, 2016 04:06
keybase verification

Keybase proof

I hereby claim:

  • I am marceloneil on github.
  • I am marceloneil (https://keybase.io/marceloneil) on keybase.
  • I have a public key whose fingerprint is F3C7 8012 164F B819 7788 4E75 216F 0742 87B2 6D46

To claim this, I am signing this object:

@marceloneil
marceloneil / verification.txt
Created December 25, 2016 17:50
onename verification
Verifying that "marceloneil.id" is my Blockstack ID. https://onename.com/marceloneil
@marceloneil
marceloneil / index.html
Created August 11, 2016 21:20
JQuery UI Draggable Table
<table>
<tr>
<td class="droppable">
<div class="draggable" id="d1">1</div>
</td>
<td class="droppable">
</td>
<td class="droppable">
<div class="draggable" id="d2">2</div>
</td>
@marceloneil
marceloneil / index.html
Created August 11, 2016 21:20
JQuery UI Draggable Table Swap
<table>
<tr>
<td class="droppable">
<div class="draggable">1</div>
</td>
<td class="droppable">
</td>
<td class="droppable">
<div class="draggable">2</div>
</td>
@marceloneil
marceloneil / index.html
Created August 10, 2016 20:52
JQuery UI Sortable Table
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>5</td>
<td>6</td>
int leds[] = {};
int globalDelay = 100;
void setup(){
// Initialize Pins
for(int i = 0; i < sizeof(leds); i++){
pinMode(leds[i], OUTPUT);
}
// Initialize Serial
Serial.begin(9600);
Verifying that +marceloneil is my blockchain ID. https://onename.com/marceloneil