Memory hints
vmstat
Show free memory using vmstat -s -S M | head -n 5 | tail -n 1
grep -P "[\x80-\xFF]" filename |
from datetime import datetime | |
from elasticsearch_dsl import ( | |
DocType, | |
String, | |
Integer, | |
Float | |
) | |
def _suffix(): |
vmstat
vmstat -s -S M | head -n 5 | tail -n 1
smem
In Mb
SELECT
TABLE_SCHEMA AS `Database`,
TABLE_NAME AS `Table`,
ROUND((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024) AS `Size (MB)`
FROM
Command:
cat /path/to/certs/my_cert.crt | openssl x509 -noout -enddate
Sample output:
notAfter=Apr 6 14:23:50 2024 GMT
Set logging to verbose:
import logging
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
req_log = logging.getLogger('urllib3')
req_log.setLevel(logging.DEBUG)
req_log.propagate = True
podman run --ulimit=host -p "9200:9200" elasticsearch:7.5.1
Open the nanorc file:
nano ~/.nanorc
Turn on line-numbers feature by pasting the following into the nanorc:
set linenumbers
In SQL terminal:
RESET QUERY CACHE;
FLUSH QUERY CACHE;
In Python/Django: