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
# Update & Upgrade the System | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Install dependencies there might be more based on your system | |
# However below instructions are for the fresh Ubuntu install/server | |
# Please carefully watch the logs because if something could not be install | |
# You have to make sure it is installed properly by trying the command or that particular | |
# dependency again |
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
coinbase, scriptPubKey, scriptSig - they are all scripts. You can read in wiki about how to decode script https://en.bitcoin.it/wiki/Script. | |
Coinbase can contain any data, even invalid script. But typically, it contains valid scripts. Examples of decoding: | |
coinbase: 038abd07062f503253482f048725ee5208083865a409000000092f7374726174756d2f | |
03 - length opcode | |
8abd07 - data with length 03 | |
06 - length opcode | |
2f503253482f - data with length 06 | |
04 - length opcode |
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
# ------------------------------------ | |
# Docker alias and function | |
# ------------------------------------ | |
# Clear all container and images | |
alias dkc-clear='docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) && docker rmi $(docker images -q)' | |
# Stop and Remove all containers | |
alias dkc-all='docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)' |
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
You can use more utility function like ethescan.io, this is example if u want to access via blockchain.info | |
- Transaction | |
https://api.blockchain.info/eth/tx/0xbf3a7843ee33b1382389ea7cf433ff23ad0b09f47a1a9ca8190cf763ea6bc270 | |
- Address | |
https://api.blockchain.info/eth/account/0x2F1659415Ff18dBa7734769aEAA60d961623dc0a/balance | |
- Multiple Address | |
https://api.blockchain.info/eth/account/0x2F1659415Ff18dBa7734769aEAA60d961623dc0a,0xBbeE3a75CFe673d5B4d292AD6FE6d0e27Aa3f28E/balance |
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
Job Hiring | |
—————————————— | |
Front End Developer | |
[ที่อยู่ เมือง รหัสไปรษณีย์] [โทรศัพท์] [ที่อยู่อีเมล] | |
Responsibilities | |
- Develop front end part by coordinating with Backend and Testing teams. | |
- Develop web applications for cryptocurrency such as Bitcoin, Ethereum | |
Qualifications |
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
/** pruned version of CTransaction: only retains metadata and unspent transaction outputs | |
* | |
* Serialized format: | |
* - VARINT(nVersion) | |
* - VARINT(nCode) | |
* - unspentness bitvector, for vout[2] and further; least significant byte first | |
* - the non-spent CTxOuts (via CTxOutCompressor) | |
* - VARINT(nHeight) | |
* | |
* The nCode value consists of: |
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
import ecdsa | |
import ecdsa.der | |
import ecdsa.util | |
import hashlib | |
import os | |
import re | |
import struct | |
b58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' |
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
UserID: 13169 | Power : 1974.63242285 | |
UserID: 2772 | Power : 1274.84984463 | |
UserID: 4335 | Power : 680.00000000 | |
UserID: 30654 | Power : 322.66876297 | |
UserID: 3121 | Power : 290.28352480 | |
UserID: 9455 | Power : 252.07596360 | |
UserID: 23882 | Power : 205.56877431 | |
UserID: 13782 | Power : 185.01529797 | |
UserID: 34774 | Power : 144.91841217 | |
UserID: 30761 | Power : 143.51126452 |
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
{ | |
"sync.gist": "", | |
"sync.version": 242, | |
"sync.lastUpload": "2016-12-27T16:34:19.308Z", | |
"sync.autoDownload": false, | |
"sync.autoUpload": true, | |
"sync.lastDownload": "2016-12-27T15:58:35.760Z", | |
"sync.showSummary": true, | |
"sync.forceDownload": true, | |
"sync.workspaceSync": false, |
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
คำสั่ง หน้าที่ รายละเอียด | |
File/Directory Basics | |
ls List files แสดงรายชื่อไฟล์และไดเร็คทอรี่ | |
cp Copy files สำเนาไฟล์ | |
mv Rename files เปลี่ยนชื่อไฟล์ | |
rm Delete files ลบไฟล์ | |
ln Link files สร้างไฟล์เชื่อมโยง | |
cd Change directory ย้ายไปยังไดเร็คทอรี่ที่ต้องการ | |
pwd Print current directory name แสดงชื่อไดเร็คทอรี่ปัจจุบัน | |
mkdir Create directory สร้างไดเร็คทอรี่ใหม่ |