Install Terminator (shell)
sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator
Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").
<?php | |
global $ld_recalc; | |
global $geolocate_api_key; | |
$geolocate_api_key = "YOUR_GOOGLE_GEOLOCATE_API_KEY"; | |
$ld_recalc = array( | |
'posts_per_run' => 16, | |
'post_types' => array( 'distributor' ), |
sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator
Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").
Elasticsearch Painless script which aims to calculate the difference in days between a date indexed into a document and the current date.
GET days_compare/_search
{
"script_fields": {
"diffdate": {
"script": {
"lang": "painless",
"source": """
If you get a NET::ERR_CERT_COMMON_NAME_INVALID
when trying to connect to Kibana from your browser, it means the CN and/or SAN you defined at the certificate generation is incorrect. Please refer to the Encrypt traffic between your browser and Kibana documentation for more details on how to properly generate a server certificate for Kibana.
Run GET _cat/thread_pool?v&h=node_name,name,max,pool_size,size,type,queue_size
Gives you details on Elasticsearch threadpool size, type, queue_size.
Example output
node_name name max pool_size size type queue_size
instance-0000000009 analyze 0 1 fixed 16
instance-0000000009 ccr 32 32 fixed 100
Please replace TAG ID 1 and TAG ID 2 by the tags you are looking for.
SELECT p.id
FROM wp_posts AS p
JOIN wp_term_relationships AS tr ON p.id = tr.object_id
JOIN wp_term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id
JOIN wp_terms AS t ON tt.term_id = t.term_id
WHERE t.term_id=_TAG ID 1_ OR t.term_id=_TAG ID 2_ AND p.post_type LIKE 'post'
GROUP BY p.id
location.csv
lat,long, timestamp
41.12,-71.34,1569476964
38.85896,-106.01665,1569476964
65.47629,18.61576,1569476964
Add vis_type_table.legacyVisEnabled: true
to kibana.yml
PUT /_all/_settings
{
"index.search.slowlog.threshold.query.warn": "10s",
"index.search.slowlog.threshold.query.info": "5s",
"index.search.slowlog.threshold.query.debug": "2s",
Command:
tcpdump -A 'tcp port 9200 and (tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x504f5354)' -i lo0 | egrep -A 5 -i "POST /_bulk"
Expected output (w/ Content-Length):
...U...5POST /_bulk HTTP/1.1
Connection: Keep-Alive