Let's remove any old versions of Docker if they exist:
sudo yum remove docker \
docker-common \
docker-selinux \
docker-engine| package main | |
| import ( | |
| "fmt" | |
| "github.com/syndtr/goleveldb/leveldb" | |
| "log" | |
| ) | |
| func main() { | |
| db, err := leveldb.OpenFile("/tmp/foo.db", nil) |
| 1. Requirements | |
| yum install pcre* | |
| yum install libxml* | |
| yum install gdbm-devel | |
| 2. Download packages | |
| apr-1.5.2.tar.gz | |
| apr-util-1.5.2.tar.gz |
| var net = require('net'); | |
| // creates the server | |
| var server = net.createServer(); | |
| //emitted when server closes ...not emitted until all connections closes. | |
| server.on('close',function(){ | |
| console.log('Server closed !'); | |
| }); |
| # Redis Cheatsheet | |
| # All the commands you need to know | |
| redis-server /path/redis.conf # start redis with the related configuration file | |
| redis-cli # opens a redis prompt | |
| # Strings. |
| import javax.crypto.*; | |
| import javax.crypto.spec.GCMParameterSpec; | |
| import java.nio.ByteBuffer; | |
| import java.security.SecureRandom; | |
| import java.util.Arrays; | |
| public class AESGCMUpdateAAD2 { | |
| // AES-GCM parameters | |
| public static final int AES_KEY_SIZE = 128; // in bits |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.nio.channels.FileLock; | |
| // The class demonstrates how to get an exclusive file lock that prevents other threads and processes / JVMs from | |
| // obtaining a lock on the same file. To do this, you need to synchronize a block on a file and acquire FileLock. See | |
| // comments below for more details. Run this class in multiple JVMs and see each thread of each JVM acquires a lock in | |
| // an orderly fasion. | |
| public class FileLocking extends Thread |
| { | |
| "items": [ | |
| { | |
| "simpleResponse": { | |
| "textToSpeech":"This is the first simple response for a basic card" | |
| } | |
| }, | |
| { | |
| "basicCard": { | |
| "title":"Title: this is a title", |
Fastify did 6K RPS (Request per Second)
Netty did 23K RPS (Request Per Second)
Actix did 53K RPS (Request Per Second)
Actix 1ms latency
Netty 4ms latency
Fastify 14ms latency
npm install -g autocannon
| window["crc64"] = function (inputString) { | |
| /** | |
| * @see https://github.com/dcodeIO/long.js/ | |
| */ | |
| /** | |
| * Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as *signed* integers. | |
| * See the from* functions below for more convenient ways of constructing Longs. | |
| * | |
| * @class A Long class for representing a 64 bit two's-complement integer value. | |
| * @param {number} low The low (signed) 32 bits of the long |