This file contains 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
3623: /usr/bin/influxdb -pidfile /opt/influxdb/shared/influxdb.pid -config /opt/influxdb/shared/config.toml | |
Address Kbytes RSS Dirty Mode Mapping | |
0000000000400000 14948 11008 0 r-x-- influxdb | |
0000000001498000 160 160 40 rw--- influxdb | |
00000000014c0000 204 124 124 rw--- [ anon ] | |
0000000001f1d000 1580 1452 1452 rw--- [ anon ] | |
000000c000000000 8 8 8 rw--- [ anon ] | |
000000c207f90000 7616 6720 6720 rw--- [ anon ] | |
00007f3ad8000000 2312 2048 2048 rw--- [ anon ] | |
00007f3ad8242000 63224 0 0 ----- [ anon ] |
This file contains 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
# 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- |
This file contains 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
POST /_cluster/reroute?explain | |
{ | |
"commands": [ | |
{ | |
"allocate": { | |
"index": "intelligence-reports-2014.08.16", | |
"shard": 0, | |
"node": "B4Yv-wpCSRqWIvncIyql0A" | |
} | |
} |
This file contains 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
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 |
This file contains 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
require "rubygems" | |
require "blather/client" | |
setup "some@thing.here", "password" | |
@translations = YAML.load(File.read(File.dirname(__FILE__)+"/translations.yml")) | |
before (:message, :chat?, :body) {|msg| puts "new message from #{msg.from.stripped}"} | |
message :chat?, :body => @translations["exit"].values do |m| | |
say m.from, "Exiting" |
This file contains 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
// 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 |
This file contains 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
STREAM IN: kbUz7QVz78KKErm5DdVb/r4Bg7WEhmEGgiEIMvpgs51c11iqnGVjLYkYZWUstZ8bfa//S8hNJVVK1lSEgJlAz8V700xEzcrbx88xsTxy5s6N+knJI1UCDB/A5uqzBw9hLvg9uM3Cx/8ewz9mcxnuwh9/GKZuC3mx0hvRgMXdDwXBhd6Lg5fwnWz9LJI+e6SX1uVdrHCq/cY0xTPLAO8DNL93d34RSo1JbLWHqjC7xY40ozeR2G0XDDnOwXgUIbmmiPWlQalEGXIKywBGF/SwMQNIlf2QcoxNjIt+oT77YXdfgCTcvJ+D44Y1ZPi9/KcTe/ZtWS4A4g9+TYgglLfA/fNbQS2O6zT501xgn4XdwvMHo9PCMjxsi44n4mUhD9HragV09H1JZHDghBONy9YR5IIXu4cyRlsI9xpwpvCoGmemuwfc5N4HNqW8J4Kwa07e6YUlHCFunph6fMC3cYCx8ZUThc28BgjKwEHwM9tYWGszKszktt0I1mrbQxH+jYJgjV8oDWwHm9JhZLn7ENSxdqdnU4bmaA59X6bGPDewrGmC5RuGUKgt/b2WdBY9QMyGFFZhZ1HSWu+REPXdAMO7lT5rqdvNxkgHC33CippIEFbGdkzsRywC7Y2wJPA9aYdJMKgl4f8dcUIUkoYkjnYPAgCDzi5ggTV/c3wAfua1MXFK/GXak60fN6gc0iXSANOcX1TArJXSyGFN8SV8DEFYFHh+tcbA6QgIIWkU8AACAASURBVA3qfW | |
SENDING: (/opt/ruby-ee-dists/2010.02/lib/ruby/gems/1.8/gems/blather-0.4.14/lib/blather/stream.rb:151:in `receive_data') <stream:error><xml-not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error> | |
/opt/ruby-ee-dists/2010.02/lib/ruby/gems |
This file contains 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
#!/bin/zsh | |
forked_image() { | |
mkdir -p ~/.git_shots | |
filename="$(date +%s)_$(basename $PWD).jpg" | |
imagesnap -q -w 3 ~/.git_shots/$filename | |
sleep 2 | |
NOEXEC=0 rvm default do t update "New commit from @somebody32" -f ~/.git_shots/$filename >/dev/null | |
} |
This file contains 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
def sort_and_count(list) | |
return [0, list] if list.size <= 1 | |
mid = list.size / 2 | |
left = list[0, mid] | |
right = list[mid, list.size-mid] | |
left_result = sort_and_count(left) | |
right_result = sort_and_count(right) | |
merge_result = merge_and_count(left_result[1], right_result[1]) |
This file contains 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 React from 'react'; | |
export default class App extends React.Component { | |
render() { | |
return ( | |
<svg> | |
<circle cx={50} cy={50} r={10} fill="red" /> | |
</svg> | |
) | |
} |
OlderNewer