Thread pools on the JVM should usually be divided into the following three categories:
- CPU-bound
- Blocking IO
- Non-blocking IO polling
Each of these categories has a different optimal configuration and usage pattern.
0eNqkvd2ONc2NXnkv37GqkSTjt29lMBi0bcEQ0FYLkhqwYejep7qMUaWmd+03Y60jSZ+k/RSTmU8ygisZ//u3//Kv//77P/35D3/862///L9/+8N//bc//uW3f/6//vdvf/nDf//jv/zrf/yzv/6vP/3+t3/+7Q9//f3/+O13v/3xX/7Hf/yn3//PP/3593/5y8e///G//f7P//3P//b5rx//5ff/+tff/va73/7w+c/+52//HH/7v3/32+//+Nc//PUPv/8/v/n1H/7X//PHf/8f/+X3f/78H/ynX/vLn/71D3/96+d/97vf/vRvf/n8P/7bH//jL/j8sY9a1+9++1+f/yZy/lP/VPlvf/jz7//r//lf5N9+959+PP/Tj//1z//yx7/86d/+/Nf/84e+kJj7/5NYvxYoIrAOBBoRmD8ItBcCnQiMA4FBBPoPAuOFwCQC7SAHiwjUgcA+egZmHj0Dcf36eX2lEj8F8Lu/m8Ef//Tv//Gs/2fJQJJj/FLy3/79rz9pJtPsIsxikpcJsyHNvkWYnUl2EyZxjX7yUMc8euh6nT10xDN6nvz9myjEgUIy4+gXv9WSGUczt1oy42hNhMmMo7YJkxlHLREmM44qE+ZgminCnEgypwlzMc0hwtxMsokw6zoy6Twz6QpgoXli0sW8JUXtVcxbwtRexbwlRO1VzFvC1F7FvOUStVcxb7nUQ0dql+tkvVPMSi5h0u0iQZ2US424yXUdrKQbcpPcpmxoYIcj99EORzvx+NzzyONbZ9dMvCjbYJLC9NtkkmnuDFSC5BKm3zaTNO+2jlZBOYXp92BhmndbZ94yS4RZTNK82zqqVHJMESZzoLFMmMyChrCgzixoGAvqzIK6sKDOLKgbCxrMgnoYTeZBZvNnMAtSmz+DeZDZ/BnMgtTmz2AeZDZ/BrMgtfkzmAeZzZ/BLEht/gzmQWbzZzILSmNBk1lQCguazILCWNBkFhTCgiazoMtY0GQWdAkLmsyCLmNBk1mQ2dqYyIJiGwuam2m |
import {Injectable, NgModuleFactory, NgModuleFactoryLoader, Compiler, Type} from '@angular/core'; | |
class LoaderCallback { | |
constructor(public callback) {} | |
} | |
export let load: Type = (callback: Function) => { | |
return new LoaderCallback(callback); | |
}; |
Backup: | |
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql | |
Restore: | |
cat your_dump.sql | docker exec -i your-db-container psql -Upostgres |
Note for newcomers: | |
In the shortcuts below, "C" stands for CTRL and "A" stands for "ALT". This is a convention | |
used in the Midnight Commander documentation and was kept here. | |
You can also use "ESC" instead of "ALT", which is useful on Macbooks. | |
Main View | |
--------------------------------------------------------------- | |
- File/directory operations |
Normally the installation of MySQL can be achieved with a single command, which executes a script provided by MacMiniVault :
bash <(curl -Ls http://git.io/eUx7rg)
However, at the time of writing the script is not compatible with OS X El Capitan (10.11)
An alternative to the aforementioned installation script is installing MySQL using Homebrew. This gist assumes you already have Homebrew installed, if not first read the article "Homebrew and El Capitan"
Make sure Homebrew has the latest formulae, so run brew update
first
<?php namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
/** | |
* If the incoming request is an OPTIONS request | |
* we will register a handler for the requested route | |
*/ | |
class CatchAllOptionsRequestsProvider extends ServiceProvider { |