Skip to content

Instantly share code, notes, and snippets.

select
*
from
information_schema.processlist
where
ID <> connection_id() and
USER not in ('system user', 'repl', 'rdsrepladmin') and
COMMAND not in ('Sleep', 'Daemon')
order by
TIME desc;
import requests
import re
import datetime
elasticsearch_url = 'http://elasticsearch'
req = requests.get(elasticsearch_url + '/_aliases?pretty=true')
indexes_json = req.json()