ElasticSearch delete all indexes
curl -X DELETE 'http://localhost:9200/_all
ElasticSearch remove read-only status
curl -X PUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": false}'
Add ssh configuration
nano ~/.ssh/config
Host IP
HostName IP
User USER_NAME
Port PORT
IdentityFile PATH_TO_KEY
IdentitiesOnly yes
Crontab
sudo -u www-data crontab -e
Redis Ubuntu
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get install -y redis-server php-redis
sudo systemctl enable redis-server.service
echo "maxmemory 256mb" >> /etc/redis/redis.conf
echo "maxmemory-policy allkeys-lru" >> /etc/redis/redis.conf
sudo systemctl restart redis-server.service