This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log <from commit>..<to commit> --oneline | |
# commits with a custom output format | |
# e.g. |hash|author|date|commit message | |
git log <from commit>..<to commit> --pretty=format:"|%h|%an|%cD|%s" | |
# commits within a subdirectory or module | |
git log <from commit>..<to commit> --oneline ./subdirectory | |
# git docs: https://git-scm.com/docs/git-log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Requirements: | |
# python3.6, redis-py | |
# 2. Run instructions: | |
# python redis-slowlog-pretty-printer.py <redis endpoint> <port> <# logs to get> | |
# eg. python redis-slowlog-pretty-printer.py localhost 6379 10 | |
# 3. Sample output: | |
# <local date/time> [ <execution time> ]: <command> | |
# 2017-06-22 00:00:00 [ 10.0 s ]: b'keys *rk54jhk345hnmmlk4lk*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 100 requests with 10 concurrent threads | |
# Headers: h1 and h2 | |
# Query parameters: p1 and p2 | |
# body.txt is the content of the body (supply blank file if no body) | |
ab -n 100 -c 10 -p ./body.txt -H "h1:value1" -H "h2:value2" -v 2 'http://url?p1=x&p2=y' |