Skip to content

Instantly share code, notes, and snippets.

Avatar

Ilya libbkmz

View GitHub Profile
@libbkmz
libbkmz / Cargo.toml
Created Feb 9, 2022
Simple rust wordle solver
View Cargo.toml
[package]
name = "wobli"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
@libbkmz
libbkmz / CMakeLists.txt
Created Jan 28, 2022
CMake Error: Cannot determine link language for target "test_1_lib_js".
View CMakeLists.txt
cmake_minimum_required (VERSION 3.8)
set(CMAKE_VERBOSE_MAKEFILE on)
project(plugin CXX)
add_executable(test test.cc)
em_link_js_library(test "lib.js")
View minecraft_jvm_stacks.txt
2021-12-28 10:23:49
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.51-b03 mixed mode):
"pool-25-thread-2" #269 prio=5 os_prio=0 tid=0x0000000039a54000 nid=0x30d0 waiting on condition [0x000000009f33d000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x000000063c6010a0> (a java.util.concurrent.CompletableFuture$Signaller)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
at java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1685)
at java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3320)
View fio_bruteforce.py
import itertools
import subprocess as sp
import json
import pprint
from collections import namedtuple
JQ_PATH = "/usr/local/bin/jq"
FIO_PATH = "/usr/local/bin/fio"
JQ_QUERY = namedtuple("JQ_QUERY", ["query", "name", "parse_fn"])
View elastic_7.13.3.patch
diff --git a/server/src/main/java/org/elasticsearch/tasks/TaskManager.java b/server/src/main/java/org/elasticsearch/tasks/TaskManager.java
index 10fb4eced77..4be7707d886 100644
--- a/server/src/main/java/org/elasticsearch/tasks/TaskManager.java
+++ b/server/src/main/java/org/elasticsearch/tasks/TaskManager.java
@@ -81,6 +81,8 @@ public class TaskManager implements ClusterStateApplier {
private final ConcurrentMapLong<CancellableTaskHolder> cancellableTasks = ConcurrentCollections
.newConcurrentMapLongWithAggressiveConcurrency();
+ private final ConcurrentMapLong<Set<CancellableTaskHolder>> cancellableChildTasks = ConcurrentCollections
+ .newConcurrentMapLongWithAggressiveConcurrency();
@libbkmz
libbkmz / docker-compose.yaml
Created Sep 20, 2020
ElasticSearch 7.6.2 cluster with grafana, prometheus and es_exporter
View docker-compose.yaml
version: '2.2'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es02,es03
# - discovery.zen.ping.unicast.hosts=es02,es03
@libbkmz
libbkmz / docker-compose.yaml
Created Sep 17, 2020
Elastic search simple cluster with docker-compose 7.6.2
View docker-compose.yaml
version: '2.2'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es02,es03
# - discovery.zen.ping.unicast.hosts=es02,es03
View ppft.test.py
import math
import sys
import ppft as pp
def worker():
import builtins
try:
__builtins__._DATA
except:
View test_pycharm.py
from unittest import TestCase
class ManuallyTypedTest(TestCase):
def test_1(self):
self.fail()
def test_2(self):
pass
View lingualeo.js.log
[Violation] Forced reflow while executing JavaScript took 108ms
tag.js:117 [Violation] 'requestAnimationFrame' handler took 68ms
TalkerClassPackage.e43f98.min.js:13 Uncaught (in promise) DOMException
play @ TalkerClassPackage.e43f98.min.js:13
e @ TalkerClassPackage.e43f98.min.js:1
y @ TalkerClassPackage.e43f98.min.js:13
(anonymous) @ TalkerClassPackage.e43f98.min.js:13
b @ t.js:4
setTimeout (async)
(anonymous) @ t.js:6