You can convert js-code like this:
var a = '1',
b,
c = '2';
into
# delete everything for reports older than 367 days | |
curator delete --older-than 367 --prefix intelligence-reports- | |
# optimize | |
curator optimize --older-than 2 --prefix intelligence-reports- | |
# RAW reports | |
curator delete --older-than 32 --prefix intelligence-raw- | |
curator optimize --older-than 2 --prefix intelligence-raw- |
POST /_cluster/reroute?explain | |
{ | |
"commands": [ | |
{ | |
"allocate": { | |
"index": "intelligence-reports-2014.08.16", | |
"shard": 0, | |
"node": "B4Yv-wpCSRqWIvncIyql0A" | |
} | |
} |
Caused by: java.io.EOFException: read past EOF: NIOFSIndexInput(path="/var/lib/elasticsearch/elasticsearch/nodes/0/indices/intelligence-reports-2014.05.01/3/index/segments_2") | |
at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:336) | |
at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:54) | |
at org.apache.lucene.store.DataInput.readInt(DataInput.java:98) | |
at org.apache.lucene.store.BufferedIndexInput.readInt(BufferedIndexInput.java:183) | |
at org.elasticsearch.common.lucene.Lucene.indexNeeds3xUpgrading(Lucene.java:738) | |
at org.elasticsearch.common.lucene.Lucene.upgradeLucene3xSegmentsMetadata(Lucene.java:749) | |
at org.elasticsearch.index.engine.InternalEngine.upgrade3xSegments(InternalEngine.java:1066) | |
at org.elasticsearch.index.engine.InternalEngine.<init>(InternalEngine.java:119) | |
... 9 more |
// removing the first property | |
const my_obj = { | |
, test: 1 //fuuu | |
} | |
// when copying properties from another places | |
const my_obj = { | |
test: 1 | |
, test2: 1 | |
test3: 3 //fuu, forgot the comma, scanning are not helping in this case |
You can convert js-code like this:
var a = '1',
b,
c = '2';
into
import React from 'react'; | |
export default class App extends React.Component { | |
render() { | |
return ( | |
<svg> | |
<circle cx={50} cy={50} r={10} fill="red" /> | |
</svg> | |
) | |
} |
Process: Electron [96680] | |
Path: /Applications/Electron.app/Contents/MacOS/Electron | |
Identifier: com.github.electron | |
Version: 0.36.0 (0.36.0) | |
Code Type: X86-64 (Native) | |
Parent Process: zsh [81235] | |
Responsible: Electron [96680] | |
User ID: 501 | |
Date/Time: 2015-12-16 17:35:22.617 +0100 |
import Backbone from 'backbone'; | |
import $ from 'jquery'; | |
export default Backbone.Router.extend({ | |
routes: { | |
'': 'home', | |
'main_app_part': 'mainAppPart', | |
'about': 'about', | |
'heavy(/:heavy_param)': 'heavy', | |
'*handleMissingRoute': 'handle404', |
import Backbone from 'backbone'; | |
import $ from 'jquery'; | |
import Router from './router'; | |
$(() => { | |
new Router(); | |
Backbone.history.start(); | |
}); |
import Router from './router'; | |
export default () => { | |
new Router(); | |
}; |