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
[2019-08-07T11:41:36.544+0000][8670][safepoint ] Leaving safepoint region | |
[2019-08-07T11:41:36.544+0000][8670][safepoint ] Total time for which application threads were stopped: 0.0001258 seconds, Stopping threads took: 0.0000239 seconds | |
[2019-08-07T11:41:37.545+0000][8670][safepoint ] Application time: 1.0000988 seconds | |
[2019-08-07T11:41:37.545+0000][8670][safepoint ] Entering safepoint region: Cleanup | |
[2019-08-07T11:41:37.545+0000][8670][safepoint ] Leaving safepoint region | |
[2019-08-07T11:41:37.545+0000][8670][safepoint ] Total time for which application threads were stopped: 0.0001082 seconds, Stopping threads took: 0.0000199 seconds | |
[2019-08-07T11:41:38.545+0000][8670][safepoint ] Application time: 1.0000852 seconds | |
[2019-08-07T11:41:38.545+0000][8670][safepoint ] Entering safepoint region: Cleanup | |
[2019-08-07T11:41:38.545+0000][8670][safepoint ] Leaving safepoint region | |
[2019-08-07T11:41:38.545+0000][8670][safepoint ] Total time for which application threads were stopped: 0. |
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
::: {production_5}{LDS3OYk-TJaxxmxEYnhTsQ}{FnUem47gQECGFgy7QEUbwg}{10.0.7.191}{10.0.7.191:9300}{dim}{ml.machine_memory=8100618240, ml.max_open_jobs=20, xpack.installed=true} | |
Hot threads at 2019-08-07T11:41:21.796Z, interval=500ms, busiestThreads=99999, ignoreIdleThreads=false: | |
0.1% (643.8micros out of 500ms) cpu usage by thread 'elasticsearch[production_5][refresh][T#1]' | |
10/10 snapshots sharing following 9 elements | |
[email protected]/jdk.internal.misc.Unsafe.park(Native Method) | |
[email protected]/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194) | |
[email protected]/java.util.concurrent.LinkedTransferQueue.awaitMatch(LinkedTransferQueue.java:743) | |
[email protected]/java.util.concurrent.LinkedTransferQueue.xfer(LinkedTransferQueue.java:684) | |
[email protected]/java.util.concurrent.LinkedTransferQueue.take(LinkedTransferQueue.java:1366) |
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
module EasySerialization | |
extend ActiveSupport::Concern | |
included do | |
self.class_attribute :serialization_config | |
self.serialization_config = Hash.new { |h, k| h[k] = [] } | |
end | |
def serializable_hash(opts={}) | |
opts ||= {} |
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
[ | |
{ | |
"channel_id": 121, | |
"created_at": "2014-07-04T20:34:01-04:00", | |
"down": false, | |
"id": 1747402, | |
"member_id": 5079674, | |
"network_id": 2, | |
"position": null, | |
"track_id": 32792, |
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
struct list_node { | |
void* data; | |
struct list_node* next; | |
}; | |
struct list { | |
struct list_node* head; | |
}; | |
struct list* list_create() { |
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 make_board(width, height): | |
return [[0 for x in range(width)] for y in range(height)] | |
def print_board(board): | |
for row in board: | |
print ''.join([str(x) for x in row]) | |
def neighbors(board, x, y): | |
def coords(x, y): | |
yield x - 1, y - 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
#!/usr/bin/env python | |
def match(needle, haystack): | |
"""Perform finite-automata style string matching.""" | |
matches = [] | |
nposition = 0 | |
for index, char in enumerate(haystack): | |
if needle[nposition] == char: | |
nposition += 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
<?php | |
class TcpMagic { | |
private $_socket = null; | |
public function __construct($host, $port) { | |
$this->_socket = socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp')); | |
socket_connect($this->_socket, $host, $port); | |
} |