Algorithm | level | Compression |
---|---|---|
zstd | 3 | 566 B => 417 B (73.67%) |
lz4 | 3 | 566 B => 438 B (77.39%) |
Dictionary created with zstd --train -r leafs/
.
BEGIN { | |
require 'net/http' | |
Net::HTTP.module_eval do | |
alias_method '__initialize__', 'initialize' | |
def initialize(*args,&block) | |
__initialize__(*args, &block) |
# https://github.com/composer/composer/issues/2798 | |
# Failed to enable crypto | |
grafhax commented on Dec 3, 2014 | |
I've encountered this problem when setting up new dev environments on my mac. To solve the issue i've had to make sure the php-curl library was compiled with php and updated. I generally do this using MacPorts to manage/compile the libs. | |
# update the ports tree (software list) | |
$ sudo port -v selfupdate | |
# install php (shortcut for compiling php with our required libs) | |
$ sudo port install php56 |
The minimum_master_nodes
setting is extremely important to the
stability of your cluster. This setting helps prevent split brains, the existence of two masters in a single cluster.
When you have a split brain, your cluster is at danger of losing data. Because the master is considered the supreme ruler of the cluster, it decides when new indices can be created, how shards are moved, and so forth. If you have two masters, data integrity becomes perilous, since you have two nodes
I hereby claim:
To claim this, I am signing this object:
To see what mds and more importantly its child mdworker is actually doing - use fs_usage to log what files it is opening:
sudo fs_usage -w -f filesys mdworker
Though there is a lot of unintelligable stuff in there, it does tell you when it opens a file to begin reading from it. Copying a PDF into my filesystem shows mdworker opening the file then immediately after lots of activity...
p.s. if you want a little less detail, this will just list the open file points:
sudo fs_usage -w -f filesys mdworker | egrep "open"
# https://github.com/michaeldv/awesome_print/issues/89 | |
arr = [1,2,3].ai # short for awesome_inspect |
require 'digest/md5' | |
def gfm(text) | |
# Extract pre blocks | |
extractions = {} | |
text.gsub!(%r{<pre>.*?</pre>}m) do |match| | |
md5 = Digest::MD5.hexdigest(match) | |
extractions[md5] = match | |
"{gfm-extraction-#{md5}}" | |
end |
# http://stackoverflow.com/questions/855759/python-try-else | |
try: | |
from EasyDialogs import AskPassword | |
except ImportError: | |
getpass = default_getpass | |
else: | |
// 20 other lines | |
getpass = AskPassword |