This howto is valid for Betanet on Ubuntu or Debian
You have to install some dependencies. In debian / ubuntu run:
# Install lisk-commander | |
$ sudo npm install --global --production lisk-commander | |
# Transaction creation | |
$ lisk transaction:create -t transfer 100 ADDRESSL | |
? Please enter your secret passphrase: [hidden] | |
? Please re-enter your secret passphrase: [hidden] | |
{"amount":"10000000000","recipientId":"XXXL","senderPublicKey":"XX","timestamp":123,"type":0,"fee":"10000000","asset":{},"signature":"XX","id":"123"} | |
# Broadcast the multisig tx |
// First install bitcoinjs-lib and bip39 in the current working directory | |
// npm install bitcoinjs-lib bip39 | |
const bitcoin = require ('bitcoinjs-lib'); | |
const bip39 = require ('bip39'); | |
/// Generate a random keypair and display private and public key and the address (compressed by default) | |
let keypair = bitcoin.ECPair.makeRandom (); | |
console.log ('Address:', keypair.getAddress()); |
# For those attempting to install and use it on Linux, this is a quick howto (not really a bash script): | |
# 1. Download and install Steam with wine | |
# 2. Start steam and install sailaway | |
wine Steam.exe | |
# 3. Now wine will automatically use the wrong version of directx (d3d11); open winecfg, go to libraries, in | |
# "New override library" search for d3d11 and click "Add". Then click in d3d11 in "Existing override" and click "Edit" | |
# then switch the combo to "Disable"; press on "Apply" and close winecfg |
/* Execute a promise list, n at time */ | |
Promise.prototype.allStep = (promiseList, n) => { | |
let promises = []; | |
for (let i = 0; i < promiseList.length; i+=n) { | |
promises.push (new Promise ((resolve, reject) => { | |
var p = promiseList.slice (i, i+n ? i+n <= promiseList.length : promiseList.length); | |
Promise.all (p).then ((r) => { | |
resolve (r); |
ssh root@vps -L9305:127.0.0.1:9306 |
package=boost | |
$(package)_version=1_62_0 | |
$(package)_download_path=http://sourceforge.net/projects/boost/files/boost/1.62.0 | |
$(package)_file_name=$(package)_$($(package)_version).tar.bz2 | |
$(package)_sha256_hash=36c96b0f6155c98404091d8ceb48319a28279ca0333fba1ad8611eb90afb2ca0 | |
$(package)_patches=deprecated_auto_ptr.patch | |
define $(package)_set_vars | |
$(package)_config_opts_release=variant=release | |
$(package)_config_opts_debug=variant=debug |
#define HASH_SIZE 32 | |
typedef struct block_t { | |
data: uint8_t [HASH_SIZE]; | |
}; | |
void hash (uint8_t *data, block_t *h) { | |
} |
import random | |
betRange = [79.0, 81.0] | |
def doBet (bet, winRange, mul): | |
r = random.randint (1, 9999) / 100.0 | |
if r >= winRange[0] and r <= winRange[1]: | |
return bet * mul | |
else: | |
return -bet |
#!/usr/bin/python2 | |
import urllib2 as ul2 | |
import time | |
while True: | |
ip = ul2.urlopen('http://ipecho.net/plain').read() | |
f = open('/home/dak/Dropbox/ip.txt','w') | |
f.write(ip) | |
f.close() | |
time.sleep (60) |