- Blockchian Stability
- Smart Contract Security
- Copyright issues.
Uncaught TypeError: Cannot read property 'get' of undefined | |
// change your code from | |
import uiModules from 'ui/modules' | |
// to | |
import { uiModules } from 'ui/modules' |
// edit your config/elasticsearch.yml | |
http.cors: | |
enabled: true | |
allow-origin: /https?:\/\/localhost(:[0-9]+)?/ |
bin/elasticsearch -Ehttp.cors.enabled=true -Ehttp.cors.allow-origin=* |
#input { | |
# stdin { | |
# type => "joss_web" | |
# } | |
#} | |
# filebeat need to add -> index: "filebeat_cm_ar" | |
input { | |
redis { | |
data_type => "list" |
return ( | |
<div> | |
<h1>Ming</h1> | |
</div> | |
); | |
and | |
return | |
<div> |
// start elasticsearch with CORS support | |
$ bin/elasticsearch -Ehttp.cors.enabled=true -Ehttp.cors.allow-origin=* | |
// test | |
$ curl -H "User-Agent: Mozilla" -H "Origin: http://example.com" -i localhost:9200 | |
HTTP/1.1 200 OK | |
access-control-allow-origin: * | |
content-type: application/json; charset=UTF-8 | |
content-length: 326 |
$ lsof -i tcp:8080 | |
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME | |
node 27214 mingderwang 14u IPv4 0x300d2294638a7465 0t0 TCP localhost:http-alt->localhost:57454 (CLOSE_WAIT) | |
node 27214 mingderwang 17u IPv4 0x300d22946210c275 0t0 TCP localhost:http-alt (LISTEN) | |
$ sudo kill -9 27214 |
input { stdin { } } | |
filter { | |
grok { | |
break_on_match => true | |
named_captures_only => true | |
match => { | |
"message" => [ | |
"type=%{WORD:audit_type} msg=audit\(%{NUMBER:audit_epoch}:%{NUMBER:audit_counter}\): pid=%{NUMBER:audit_pid} uid=%{NUMBER:audit_uid} old auid=%{NUMBER:old_auid} new auid=%{NUMBER:new_auid} old ses=%{NUMBER:old_ses} new ses=%{NUMBER:new_ses}", | |
"type=%{DATA:audit_type}\smsg=audit\(%{NUMBER:audit_epoch}:%{NUMBER:audit_counter}\):.*?( msg=\'(?<sub_msg>.*?)\')?$" ] |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |