Used nodes:
Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
Linux localhost.localdomain 4.14.5-200.fc26.x86_64 #1 SMP Mon Dec 11 16:29:08 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
package main | |
import ( | |
"github.com/syndtr/goleveldb/leveldb" | |
"fmt" | |
"encoding/binary" | |
"github.com/ethereum/go-ethereum/core/types" | |
"bytes" | |
"github.com/ethereum/go-ethereum/rlp" | |
) |
Windows Registry Editor Version 5.00 | |
; Default color scheme | |
; for Windows command prompt. | |
; Values stored as 00-BB-GG-RR | |
[HKEY_CURRENT_USER\Console] | |
; BLACK DGRAY | |
"ColorTable00"=dword:00000000 | |
"ColorTable08"=dword:00808080 | |
; BLUE LBLUE |
How to solve the curl port 443: Network is unreachable problem:
joridos@localhost:~/Documents/github$ opam init
default Downloading https://opam.ocaml.org/urls.txt
'opam init' failed.
# opam-version 1.1.1
# os linux
Cannot download https://opam.ocaml.org/urls.txt, please check your connection settings.
joridos@localhost:~/Documents/github$ curl https://opam.ocaml.org/urls.txt
import Html exposing (..) | |
import Html.Events exposing (..) | |
main : Program Never Model Msg | |
main = | |
Html.program | |
{ init = init | |
, view = view | |
, update = update | |
, subscriptions = \_ -> Sub.none |
With Facebook's Graph API and the creation of the Open Graph protocol, it is now easier then ever before to read and write data from and to the "social graph". Here's a few of the possibilities:
Not all random values are created equal - for security-related code, you need a specific kind of random value.
A summary of this article, if you don't want to read the entire thing:
Math.random()
. There are extremely few cases where Math.random()
is the right answer. Don't use it, unless you've read this entire article, and determined that it's necessary for your case.crypto.getRandomBytes
directly. While it's a CSPRNG, it's easy to bias the result when 'transforming' it, such that the output becomes more predictable.uuid
, specifically the uuid.v4()
method. Avoid node-uuid
- it's not the same package, and doesn't produce reliably secure random values.random-number-csprng
.You should seriously consider reading the entire article, though - it's
{ | |
"version": 3, | |
"id": "f50f0234-d25c-42a9-8c2f-e777fafe5c2a", | |
"address": "389d46c0d5d20c8220ad236b5a25b348c67e3021", | |
"Crypto": { | |
"ciphertext": "7cc66b5740d2ce0942b5beef2a997f5d85a9ab0e10a166a9f31cc16372c72204", | |
"cipherparams": { | |
"iv": "d8acc1c0a3a18c61acc33ca05eeb19bf" | |
}, | |
"cipher": "aes-128-ctr", |
import base64 | |
import hashlib | |
import hmac | |
from Crypto.Cipher import AES | |
key = base64.decodebytes(b'v4QC6l4ttEogiBYvjLyvbA==') | |
nonce = base64.decodebytes(b'3iNVHJXuCfYoU9QP49DGqw==') | |
ct = base64.decodebytes(b'x9WM3Qy15Xw/2Z6pGVKXVA==') |
0x827c4C5789957dfd8A6a90d904bef931CE1B8Fee |