http://blog.51cto.com/kexiaoke/2092029
解决方案为在filebeat里面新增一个fields字段,service : GameStatis都是自己定义的,定义完成后使用Logstash的if 判断,条件为if [fields][service] == “GameStatis”.就可以了。
docker-compose.yml
services: elasticsearch: logstash: kibana: nginx: docker-compose run ngnix
docker-compose run kibana
one byte = 8 bit
4 bit => hex 0000 2*2*2*2 = 16
so
one byte = 4bit + 4bit = hex + hex
https://gist.github.com/danharper/74a5102363fbd85f6b67
async () => { console.log('a'); await sleep(1000); console.log('b'); }
1、node & npm
apk add nodejs npm nano curl
2、mkdir t put files to t or nano test.js
2.1、nano test.js
var supertest = require('supertest'); describe('GET http://go-ethe:8545/', function () { let request = supertest('http://go-ethe:8545') it('respond with json 1', function (done) { request.post('/') .send({"jsonrpc":"2.0","method":"miner_start","params":[1],"id":1}) .expect('Content-Type', /json/) .expect(200, done); }); let gethcmd = {"jsonrpc":"2.0","method":"eth_mining","params":[],"id":1} it('respond with json mining actively start ', function (done) { request.post('/') .send(gethcmd) .expect('Content-Type', /json/) .expect(200) .expect((res)=>{if (!(true == res.
這時外資群若想出脫要怎麼出?宏碁在23時,離淨值這麼遠,華碩都在淨值了,佳世達了不起一年的眼光費,宏碁還要四年的眼光費,目前大力的砍,大力的殺,外資群企圖引出買盤,這樣才有機會再進一步的出脫手上的股票,當有人進來了,再來慢慢的演一場八點檔
有一部經典港劇,鄭少秋和劉青雲主演的,故事說一個空方大鱷在狙擊港股,找了鄭少秋和劉青雲父子檔來股市操盤要對抗大鱷,鄭少秋和劉青雲找來了大型上市櫃公司的老闆來,類似我們的台灣五十成份股,找了張忠謀,郭台銘,林百里…等,股市一開盤,鄭少秋和劉青雲開始放空,大鱷也開始放空,有人會覺得奇怪,不是對抗嗎?怎麼一起放空?兩大主力一起放空,股市當然一直跌,一直跌,這時大老闆很生氣說,叫你們對抗,你們怎麼聯合一起空?劉青雲和大老闆們說,你認為你們公司是垃圾嗎?沒有價值嗎?大老闆們生氣回答,當然不是垃圾,公司每年可以創造很高的營盈,這時劉青雲說,這不就得了,有價值的股票最終一定會引來中實戶及大戶的進駐,只是沒有人知道這些中實戶及大戶心中的價值區在哪,所以我們就測試,此持雙方持續放空,股市跌到到了某一個點後,不論雙方怎麼空,怎麼賣都跌不下去,此時劉青雲放手叫大家別放空,時間過了三分鐘,股市湧入大盤的買盤,來自已散戶,中實戶,大戶,此時劉青雲反手做多開始強力買進,最後空方大鱷就被抬出去了。
……………………………………….
……………………………………….
……………………………………….
go-ethereum
https://github.com/ethereum/go-ethereum/wiki/Management-APIs#miner
geth –rpcapi “db,personal,eth,net,web3” --rpc –rpcaddr “0.0.0.0” –rpccorsdomain “*” –rpcvhosts=*
So you want miner, need put “db,personal,miner,eth,net,web3”
curl -X POST -H “Content-Type: application/json” –data ‘{“jsonrpc”:“2.0”,“method”:“miner_stop”,“params”:[],“id”:1}’ go-ethe:8545
{“jsonrpc”:“2.0”,“id”:1,“result”:null}
Fxxx Document………………………………………..
Import see this url document
web3
https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_mining
https://github.com/ethereum/web3.js/