Skip to content

Instantly share code, notes, and snippets.

@pinheadmz
pinheadmz / hsd-create-sign-tx.md
Last active March 1, 2020 21:05
Create, sign and broadcast a raw TX using hsd RPC calls.

Get a wallet address, generate coins to it:

--> hsw-cli account get default
{
...
  "receiveAddress": "rs1qaykgcsp6zqjz7fqwlsxnh8hqwslw467md3vssl"
...
}
dialog {
position: fixed;
top: 50%;
left: 50%;
right: auto;
padding: 30px;
transform: perspective(500px) translate(-50%, -50%);
background: linear-gradient(to bottom, #FFF, #F4F4F4) #FFF;
border: none;
border-radius: 3px;
@bjoern-r
bjoern-r / Huawei_E3372_openwrt.md
Last active June 4, 2024 20:07
How to use a Huawei E3372 on OpenWRT

HOWTO use a Huawei E3372 on OpenWRT

This modem is also sold as a MegaFon M150-2 USB dongle

Needed Software

Install the needed packages via opkg tool

opkg update
/*
* Immutable data patterns without Immutable.js
*/
// 1. Objects
const a = { name: 'Alice', age: 20, email: 'alice@example.com' };
// updating property
const b = { ...x, age: 21 };
b; //=> { name: 'Alice', age: 21, email: 'alice@example.com' }