This file contains 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
console.log(key.pub.getAddress().toString()); //The above should output: 17hFoVScNKVDfDTT6vVhjYwvCu6iDEiXC4 |
This file contains 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
var tx = new bitcoin.TransactionBuilder(); |
This file contains 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
tx.addInput("d18e7106e5492baf8f3929d2d573d27d89277f3825d3836aa86ea1d843b5158b", 1); |
This file contains 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
tx.addOutput("12idKQBikRgRuZEbtxXQ4WFYB7Wa3hZzhT", 149000); // 1000 satoshis will be taken as fee. |
This file contains 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
tx.sign(0, key); | |
console.log(tx.build().toHex()); |
This file contains 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
/* Simple query */ | |
{ | |
"query": { | |
"bool": { | |
"must": { | |
"match": { | |
"host": "10.168.233.28" | |
} | |
} |
This file contains 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
<html> | |
<head> | |
<script> | |
var socket = new WebSocket("wss://ws.blockchain.info/inv"); | |
socket.onopen = function (event) { | |
console.log('connected'); | |
socket.send(JSON.stringify({"op":"unconfirmed_sub"})); | |
}; | |
socket.onmessage = function (event) { | |
var sum = 0; |
This file contains 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
var WebSocket = require('ws'); | |
var request = require('request'); | |
var socket = new WebSocket("wss://ws.blockchain.info/inv"); | |
socket.onopen = function (event) { | |
console.log('connected'); | |
socket.send(JSON.stringify({"op": "unconfirmed_sub"})); | |
}; | |
var last; | |
socket.onmessage = function (event) { |
This file contains 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
1. telint 3 | |
2. mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak | |
3. nano /etc/grub.conf # find and remove all mentions of 'nomodeset' | |
4. reboot |
This file contains 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
/*------------------------------------------------------------------ | |
Project: Paperclip | |
Author: Yevgeny S. | |
URL: https://twitter.com/YevSim | |
Version: 1.0 | |
Created: 11/03/2014 | |
Last change: 01/04/2014 | |
-------------------------------------------------------------------*/ | |
/*! normalize.css v3.0.0 | MIT License | git.io/normalize */ | |
html { |