(function(){
var box = function(){
return box.fn.init();
};
box.prototype = box.fn = {
init : function(){
console.log('box.init()');
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prototype communicating to Electrum server backend | |
// Not currently used | |
const jayson = require('jayson/promise') | |
const bitcoin = require('bitcoinjs-lib') | |
const bip32 = require('bip32') | |
const testnet = bitcoin.networks.testnet | |
function getScriptHash(xpub, index) { | |
const {address} = bitcoin.payments.p2wpkh({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
secret = open("secret.txt") | |
key = PrivateKey(secret) | |
tx = key.create_transaction([ | |
("1Q2TWHE3GMdB6BZKafqwxXtWAWgFt5Jvm3", 1, 'btc' | |
]) | |
broadcast(tx) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/home/justin/dev/mooniversity/app/server/venv/lib/python3.7/site-packages/urllib3/response.py", line 685, in _update_chunk_length | |
self.chunk_left = int(line, 16) | |
ValueError: invalid literal for int() with base 16: b'' | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/home/justin/dev/mooniversity/app/server/venv/lib/python3.7/site-packages/urllib3/response.py", line 425, in _error_catcher | |
yield |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.background { | |
/* Set rules to fill background */ | |
min-height: 100%; | |
/* Set up proportionate scaling */ | |
width: 100%; | |
height: auto; | |
/* Set up positioning */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Features | |
- Support Standard Markdown / CommonMark and GFM(GitHub Flavored Markdown); | |
- Full-featured: Real-time Preview, Image (cross-domain) upload, Preformatted text/Code blocks/Tables insert, Code fold, Search replace, Read only, Themes, Multi-languages, L18n, HTML entities, Code syntax highlighting...; | |
- Markdown Extras : Support ToC (Table of Contents), Emoji, Task lists, @Links...; | |
- Compatible with all major browsers (IE8+), compatible Zepto.js and iPad; | |
- Support identification, interpretation, fliter of the HTML tags; | |
- Support TeX (LaTeX expressions, Based on KaTeX), Flowchart and Sequence Diagram of Markdown extended syntax; | |
- Support AMD/CMD (Require.js & Sea.js) Module Loader, and Custom/define editor plugins; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./setup_environment.sh | |
+ mkdir -p work | |
+ cd work | |
+ trezor_setup_needed=false | |
+ '[' '!' -d trezor-firmware ']' | |
+ cd trezor-firmware | |
+ git fetch | |
+ UPSTREAM='@{u}' | |
++ git rev-parse @ | |
+ LOCAL=9e33d69607962dbaefe0173d5d46c45c07885b95 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HIGHLY EXPERIMENTAL | |
Windows .exe to connect hardware wallets to Bitcoin Core. | |
Some guidance: | |
Use testnet (get coins here). This is untested and buggy. | |
Only connect to Bitcoin Nodes running on the same device as junction. Connections to remote nodes are VERY INSECURE right now, and the UI won't complain. | |
Bitcoin Core versions below 18.0 are not supported | |
Required bitcoin.conf parameters: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[3302] Error loading Python lib '/tmp/_MEIzr3RJx/libpython3.7m.so.1.0': dlopen: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/_MEIzr3RJx/libpython3.7m.so.1.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./lightningd/lightningd --log-level=io | |
2019-10-07T03:24:31.543Z UNUSUAL lightningd(18406): Creating configuration directory /home/justin/.lightning | |
2019-10-07T03:24:31.546Z DEBUG plugin-manager started(18407) /home/justin/dev/github/c-lightning/lightningd/../plugins/fundchannel | |
2019-10-07T03:24:31.549Z DEBUG plugin-manager started(18408) /home/justin/dev/github/c-lightning/lightningd/../plugins/pay | |
2019-10-07T03:24:31.550Z DEBUG plugin-manager started(18409) /home/justin/dev/github/c-lightning/lightningd/../plugins/autoclean | |
2019-10-07T03:24:31.551Z DEBUG plugin-manager started(18410) /home/justin/dev/github/c-lightning/lightningd/../plugins/helloworld.py | |
2019-10-07T03:24:31.552Z plugin-helloworld.py[OUT] 7b226a736f6e727063223a22322e30222c226964223a332c226d6574686f64223a226765746d616e6966657374222c22706172616d73223a7b7d7d0a0a | |
2019-10-07T03:24:31.552Z plugin-autoclean[OUT] 7b226a736f6e727063223a22322e30222c226964223a322c226d6574686f64223a226765746d616e6966657374222c22706172616d73223a7b7d7d0a0a | |
2019-10-07T03: |