Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 509 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 509 Bytes

Cheat Sheet

CURL Commands

  • get response time of a url: curl -o /dev/null -s -w 'Total: %{time_total}s\n' "http://..."

CRON Commands

  • 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

Grep Docker logs

  • docker logs -f --tail 100 container_name 2>&1 | grep handle

Delete keys with pattern

  • redis-cli --scan --pattern pattern| xargs redis-cli del