Allow routing allocations:
curl -XPUT localhost:9200/_cluster/settings -d '{
"transient" : {
"cluster.routing.allocation.enable" : "all"
}
}'
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
openssl s_client -crlf -connect imap.gmail.com:993 | |
tag login [email protected] passwordhere | |
tag list "" "*" | |
tag select "inbox" | |
tag fetch 1:3 body[header] | |
tag fetch 3 body[header] | |
tag fetch 3 body[text] | |
tag fetch 2 all | |
tag fetch 2 fast | |
tag fetch 2 full |
Allow routing allocations:
curl -XPUT localhost:9200/_cluster/settings -d '{
"transient" : {
"cluster.routing.allocation.enable" : "all"
}
}'
// Check whether --offline was passed to gradle and set it in the test configuration's system properties | |
test { | |
if(gradle.startParameter.isOffline()) { | |
systemProperties 'TESTS.ARE.OFFLINE' : '1' | |
} | |
} |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
import SimpleHTTPServer | |
import SocketServer | |
from time import sleep | |
PORT = 5000 | |
SLEEP_TIME = 6 | |
class SlowHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
def do_GET(self): |