- get response time of a url:
curl -o /dev/null -s -w 'Total: %{time_total}s\n' "http://..."
- execute cronjob with different user in a container:
* * * * * sudo docker exec -iu {user name} {service name} bash -c 'php artisan schedule:run' >> /var/log/cron/{service name}.log 2>&1
- docker logs -f --tail 100 container_name 2>&1 | grep handle
- redis-cli --scan --pattern pattern| xargs redis-cli del