chatgpt | openai | api | curl | json

Use jq and especially jo for string and parameter creation. Handle special-character-problems ( ‘ % $ and million others ) by url encoding your strings directly at the source. chatgpt api natively speaks urlencode. I’ve tried base64, but the chatbot mentions in his answer that he/she was fed with base64 encoded stuff. To encode use […]

Baikal on Debian 11 | mysql + nginx

Install mysql. Log into mysql as root. CREATE USER ‘baikal’@’localhost’ IDENTIFIED BY ‘password’; GRANT PRIVILEGE ON *.* TO ‘baikal’@’localhost’; Log out. Log in as baikal into mysql. Then do apt-get install wget nginx certbot python3-certbot-nginx php php-fpm php-mysql php-xmlwriter php-dom php-mbstring Configure letsencrypt (certbot) BEFORE you run the baikal configuration. Get the nginx conf file […]

Elasticsearch + Debian 11 | tweak the server

Set ulimit -n: Edit /etc/profile and add ulimit -n 65535 Disable swapping by removing all swap lines from your fstab. As an alternative add the following line to your elasticsearch.yml: bootstrap.memory_lock: true Then test it using the famous Kibana (DevTools) Console: GET _nodes?filter_path=**.mlockall It should return true. Do not tune the java dns timeouts.

Elasticsearch 8.1.0 data handling

Dear experts, please don’t roast me, this is a rookies view. If i wrote bs, any hints are highly appreciated via elasticdata@xxaxxelxx Mechanical stuff: You can handle all this data handling via the so called console. The console is a tool you find inside of the Kibana WebUI: Log in as elastic superuser (or something […]