View error.sh
# ldd /jdk-11.0.5+10/bin/java | |
/lib64/ld-linux-x86-64.so.2 (0x7f6a45486000) | |
libz.so.1 => /lib/libz.so.1 (0x7f6a4546c000) | |
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f6a45486000) | |
libjli.so => /jdk-11.0.5+10/bin/../lib/jli/libjli.so (0x7f6a4525b000) | |
libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f6a45486000) | |
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f6a45486000) | |
Error relocating /jdk-11.0.5+10/bin/../lib/jli/libjli.so: __strdup: symbol not found | |
Error relocating /jdk-11.0.5+10/bin/../lib/jli/libjli.so: __rawmemchr: symbol not found |
View point.sql
create table point( | |
id bigint not null auto_increment primary key, | |
spa geometry not null, | |
rtr geometry not null, | |
spatial index(spa), | |
index(rtr) using rtree | |
) engine=InnoDB, default charset=utf8mb4; |
View browser_settings.json
{ | |
"title": "Browser settings", | |
"rules": [ | |
{ | |
"description": "left_control to left_command(Firefox&Chrome)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_control", |
View ponkotuy.json
{ | |
"Ansi 6 Color" : { | |
"Green Component" : 0.73333334922790527, | |
"Red Component" : 0, | |
"Blue Component" : 0.73333334922790527 | |
}, | |
"Tags" : [ | |
], | |
"Ansi 12 Color" : { |
View ProcStat.scala
package utils | |
import java.nio.charset.StandardCharsets | |
import java.nio.file.{Files, Paths} | |
import scala.collection.JavaConverters._ | |
object ProcStat { | |
val StatPath = Paths.get("/proc/stat") | |
def cpuStats: CpuStats = { |
View EitherTFutureUtils.scala
import cats.data.EitherT | |
import cats.implicits._ | |
import scala.collection.immutable.Iterable | |
import scala.concurrent.{ExecutionContext, Future} | |
object EitherTFutureUtils { | |
def eitherT[A, B](a: A): EitherT[Future, B, A] = EitherT(Future.successful(Either.right[B, A](a))) | |
def futureReduceLeft[A, B](xs: Iterable[EitherT[Future, B, A]])(f: (A, A) => A)(implicit ec: ExecutionContext): EitherT[Future, B, A] = { |
View binary_search.rb
class RecordBoundarySearch | |
KeyValue = Struct.new(:key, :value) | |
def initialize(table) | |
@table = table | |
end | |
def first | |
record_boundary(@table.order(id: 'ASC').limit(2)) | |
end |
View common_cache.rb
class CommonCache | |
def initialize(prefix, expire) | |
@prefix = prefix | |
@expire = expire | |
end | |
def key(id) | |
"#{@prefix}_#{id}" | |
end |
View del_redis_keys.py
#!/usr/bin/env python3 | |
# -*- coding:utf-8 -*- | |
import sys | |
import redis | |
HOST_NAME = "" | |
DB_NUMBER = 0 | |
if __name__ == "__main__": |
View Files.scala
import java.nio.file.{Path, Files => JFiles} | |
import java.nio.file.attribute.BasicFileAttributes | |
import java.util.function.{BiPredicate, Consumer} | |
import scala.collection.JavaConverters._ | |
object Files { | |
import JFunction._ | |
def find(path: Path, depth: Int = Int.MaxValue)(matcher: (Path, BasicFileAttributes) => Boolean): Iterator[Path] = | |
JFiles.find(path, depth, matcher.asJava).iterator().asScala |
NewerOlder