Skip to content

Instantly share code, notes, and snippets.

View smithbr's full-sized avatar

Brandon Smith smithbr

View GitHub Profile
# Actions -> Run Shell Script
# Pass input: as arguments
cd ~/path/to/project/dir; /usr/local/bin/jmeter -t "$@"
docker run --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:8.0.6 https://www.google.com/
for ((i=1;i<=100;i++)); do curl -v --header "Connection: keep-alive" "localhost:8080/user?uuid=52010&model_id=20&attr=0"; sleep 3; done

Keybase proof

I hereby claim:

  • I am smithbr on github.
  • I am smithbr (https://keybase.io/smithbr) on keybase.
  • I have a public key ASBNPACw73r_Cky9IykyyyE5l17GZeZBk52d4bTRFTf6Xwo

To claim this, I am signing this object:

# via https://jmetervn.com/2016/09/17/json-path-postprocessor-in-jmeter/
# Extract Single Value
JSON Path expressions: $.store.book[0].author
# Output
FIRST_AUTHOR=Nigel Rees
FIRST_AUTHOR_matchNr=1
find . -type f \( -name "*.java" -o -name "*.xml" -o -name "*.html" \)
# home dir: find ~
# this dir: find .
# root dir: find /
find ~ -name 'my.log'
find ~ -name 'my.log' -delete
find ~ -name '*.xml'
pip install virtualenvwrapper
export WORKON_HOME=~/.virtualenvs
mkdir -p $WORKON_HOME
source /usr/local/bin/virtualenvwrapper.sh
mkvirtualenv env1
@smithbr
smithbr / Mac pip
Last active December 13, 2017 06:45
pip install --user --upgrade --ignore-installed mypackage
sudo pip install --upgrade --ignore-installed mypackage
for i in {1..10};do curl -s -w "%{time_total}\n" -o /dev/null https://www.google.com/; done
curl http://apache.ip-guide.com/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz > /home/centos/apache-maven-3.5.0-bin.tar.gz
tar -xvzf /home/centos/apache-maven-3.5.0-bin.tar.gz
ln -s /home/centos/apache-maven-3.5.0 /home/centos/maven