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
LibreSSL 2.8.3 | |
built on: date not available | |
options:bn(64,64) rc4(16x,int) des(idx,cisc,16,int) aes(partial) blowfish(idx) | |
compiler: information not available | |
The 'numbers' are in 1000s of bytes per second processed. | |
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes | |
md2 0.00 0.00 0.00 0.00 0.00 | |
md4 104247.41k 302673.38k 640475.47k 896989.80k 1020123.39k | |
md5 78389.66k 235437.10k 523467.57k 759192.69k 869210.24k | |
hmac(md5) 77018.96k 227375.22k 515807.50k 750403.53k 859425.89k |
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
// This implementation based on: | |
// - https://doi.org/10.1145/3828.3835 | |
sealed trait SplayTree[+K, V] { | |
val left: SplayTree[K, V] | |
def key: K | |
def value: V | |
val right: SplayTree[K, V] |
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?retry_failed | |
{ | |
"commands" : [ | |
{ | |
"allocate_empty_primary": { | |
"index" : "Index-YYYY-MM-DD-HH", | |
"shard" : 66, | |
"node": "some-node", | |
"accept_data_loss": true | |
} |
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
mport org.apache.lucene.index.IndexWriter; | |
import org.apache.lucene.index.IndexWriterConfig; | |
import org.apache.lucene.store.Directory; | |
import org.apache.lucene.store.SimpleFSDirectory; | |
import java.io.IOException; | |
import java.nio.file.Paths; | |
public class IndexFixer { | |
public static void main(String[] args) throws IOException { |
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 'math' | |
math.randomseed(os.time()) | |
dns_providers = { | |
{ -- Quad9 | |
{'9.9.9.9', hostname='dns.quad9.net', ca_file='/usr/local/etc/kresd/DigiCertECCSecureServerCA.pem'}, | |
{'149.112.112.112', hostname='dns.quad9.net', ca_file='/usr/local/etc/kresd/DigiCertECCSecureServerCA.pem'} | |
}, | |
{ -- Cloudflare | |
{'1.1.1.1', hostname='cloudflare-dns.com', ca_file='/usr/local/etc/kresd/DigiCertECCSecureServerCA.pem'}, |
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 paramiko | |
import socket | |
import sys | |
nbytes = 4096 | |
hostname = "127.0.0.1" | |
port = 2222 | |
sock = socket.socket() | |
try: |
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
### Keybase proof | |
I hereby claim: | |
* I am catap on github. | |
* I am catap (https://keybase.io/catap) on keybase. | |
* I have a public key ASBb8IhTr1ACFnLLeB8PozKLhUa1YvFWao1NnJpAoZxsMwo | |
To claim this, I am signing this object: |