To free pagecache:
echo 1 > /proc/sys/vm/drop_caches
To free dentries and inodes:
echo 2 > /proc/sys/vm/drop_caches
To free pagecache, dentries and inodes:
To free pagecache:
echo 1 > /proc/sys/vm/drop_caches
To free dentries and inodes:
echo 2 > /proc/sys/vm/drop_caches
To free pagecache, dentries and inodes:
<?php | |
function curry($fn) | |
{ | |
if (is_callable($fn)) { | |
$fargc = count((new ReflectionFunction($fn))->getParameters()); | |
return $c = function (...$argv) use (&$c, $fn, $fargc) { | |
if (count($argv) >= $fargc) { |
<?php | |
function removeEmoji($text) | |
{ | |
$cleanText = ""; | |
// Enclosed characters 24C2 - 1F251 | |
$regexEnclosed = '/[\x{24C2}-\x{1F251}]/u'; | |
$cleanText = preg_replace($regexEnclosed, '', $text); | |
// Dingbats 2702 - 27B0 |
This Rally track is used to test the relationship between bulk indexing rejections and the following parameters:
The track contains a number of challenges, each indexing into an index with a set number of shards using a increasing number of concurrent client connections and two different bulk sizes.
reindex.remote.whitelist: "REMOTE_HOST:9200" |
function exportCanvasAsPNG(id, fileName) { | |
var canvasElement = document.getElementById(id); | |
var MIME_TYPE = "image/png"; | |
var imgURL = canvasElement.toDataURL(MIME_TYPE); | |
var dlLink = document.createElement('a'); | |
dlLink.download = fileName; |
#!/usr/bin/env bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#=================================================================# | |
# System Required: CentOS 6,7, Debian, Ubuntu # | |
# Description: One click Install ShadowsocksR Server # | |
# Author: Teddysun <[email protected]> # | |
# Thanks: @breakwa11 <https://twitter.com/breakwa11> # | |
# Intro: https://shadowsocks.be/9.html # | |
#=================================================================# |
# Delete the example index | |
curl -XDELETE "http://localhost:9200/sortable-version-test?pretty=true" | |
# Create a new example index | |
curl -X POST "http://localhost:9200/sortable-version-test?pretty=true" | |
# Set the mapping. Assumes version.groovy resides in $ES_HOME/config/scripts | |
curl -XPOST "http://localhost:9200/sortable-version-test/version/_mapping?pretty=true" -d' | |
{ | |
"version": { |