 || [ "${_project:-}" = "chown4Mdrop" ]; then
  chown4Mdrop
elif [ "${_project:-}" = "mysql" ] || [ "${_project:-}" = "mysqlConnect" ]; then
  mysqlConnect ${_method} ${_param}
elif [ "${_project:-}" = "collectFilesLog" ] || [ "${_project:-}" = "collectFiles" ]; then
  collectFilesLog ${_method} ${_param}
elif [ "${_project:-}" = "log" ] || [ "${_project:-}" = "tailLog" ]; then
  tailLog ${_method} ${_param}
elif [ "${_project:-}" = "test" ] || [ "${_project:-}" = "testFunction" ]; then
  echo "" > ${pvtTime}
  multipleCore 2 2 2 isDone doFunction 2 3
  wait
  echo "all are done"
  ls -AlpkFih./
  echo "about to cat"
  cat ${pvtTime}
else
  echo "invalid project"
  exit 1
fi

echo "ret: ${ret}"
exit ${ret}

# to prune docker system
# docker system prune -f

# to clean up obsolete images
# PS: remember to replace your latest tag: master-HCLATLAS-file-service-HCLATLAS-file-service-1585030927927 -> "1585030927927"
#  docker images |grep -P "atlas\/" |grep -P "master-HCLATLAS-file-service-HCLATLAS-file-service-" |grep -v "1585030927927" |awk '{ print $3;}' |xargs -L 1 -I % docker rmi --force %

# to build wisper images on HCLATLAS-file-service
#./build.js -b master -w HCLATLAS-file-service -d HCLATLAS-file-service

# tailLog
# docker exec -it atlas-doad-0 tail -f /var/log/api-gateway/api-gateway.log

# install webpack
# npm i webpack-cli webpack-bundle-analyzer  --save-dev


# way to mimic out of disk space {

# docker exec -it -u 0 atlas-files-0 sh -c "df -h && ls -AlpkFih /var/log/files-microservice && du -sh /var/log/files-microservice" && docker inspect atlas-files-0 |vim -

# docker cp /media/sf_github/tmp.tar atlas-files-0:/var/log/files-microservice/

# {{=<% %>=}}
# Image: "atlas/files:{{& env.version}}"
# ExposedPorts:
#   9254/tcp: {}
# HostConfig:
#   Privileged: true
#   NetworkMode: "{{& site.clusterName}}_vlan"
#   RestartPolicy:
#     Name: "no"
#   PortBindings:
#     9254/tcp:
#       - HostPort: "9254"
#   Binds:
#     - "sized_vol:/var/log/files-microservice/"
#}


# scrollBar in atlas {
#
#console.info(`scrollHeight: ${listScrollHeight}, scrollTop: ${listScrollTop}, clientHeight: ${listClientHeight}, offsetTop: ${listOffsetTop}, lastScrollTop: ${lastScrollTop}, previousAnchorPagesInSight: ${JSON.stringify(previousAnchorPagesInSight)}`);
#
#const allAnchors = document.getElementsByClassName('page-anchor');
#// at the beginning of every page(e.g. before item0, item20, item40, there will be an Anchor for page1, 2, 3)
#// and when this anchor is shown(visible) in current client window, it's anchorsInSight.
#// And if anchorsInSight is availabe after scrolling, then we'll switch to the page of that anchor.
#}

# to generate csv from json for i18n
# node /opt/github/Atlas/sourcecode/Atlas-Documents/tutorials/BlackboxScripts/UITranslationFormatConvert/index.js -ffi json -fpi /opt/github/Atlas/sourcecode/atlas-ui/public/locales/en-us/common.json -ffo csv -fpo /media/sf_github/tmp/a.csv

# docker path
# /opt/github/Atlas/sourcecode/wispr-node-buildtools/sandbox/buildroot/git/master/docker
# /opt/github/Atlas/sourcecode/wispr-node-buildtools/sandbox/buildroot/git/master/base/docker
# buildRoot: /opt/github/Atlas/sourcecode/wispr-node-buildtools/build_docker_images/../sandbox/buildroot/git/master, DATABAG_REPO_NAME: databag
# buildRoot: /opt/github/Atlas/sourcecode/wispr-node-buildtools/build_docker_images/../sandbox/buildroot/git/master, DOCKER_REPO_NAME: docker
# baseDockerPath: /opt/github/Atlas/sourcecode/wispr-node-buildtools/build_docker_images/../sandbox/buildroot/git/master/base, DOCKER_REPO_NAME: docker
# base: master, docker: master

# docker cp  /opt/github/Atlas/sourcecode/wispr-node-buildtools/sandbox/buildroot/git/master/docker/operation/scripts/operation/performance.yml atlas-operation:/usr/local/src/scripts/operation/
# vi /usr/local/src/scripts/operation/performance.yml

# ssh -i ~/.ssh/mountain2.pem <EMAIL>


# find the slowest request
#cat batch-microservice.log.0 |grep -oPi 'elapsed":\d+' |cut -d':' -f2 |sort -r -n | vi -



# way to trigger ldapsync now
# docker exec -it atlas-ldapsync-0 \
#   sed -i "\$a arrangeSchedule: '*/30 * * * * *'\
#   \n\
# syncSchedule: '*/10 * * * * *'" /usr/local/site/ldapsync-microservice/config/production.yml && \
#  svc -du /service/ldapsync-microservice/
## kubectl version
# kubectl exec -it -n default atlas-ldapsync-0 -- \
#   sed -i "\$a arrangeSchedule: '*/30 * * * * *'\
#   \n\
# syncSchedule: '*/10 * * * * *'" /usr/local/site/ldapsync-microservice/config/production.yml && \
# kubectl exec -it -n default atlas-ldapsync-0 -- svc -du /service/ldapsync-microservice/

#######################To Allow all CORS[cors][allowCors]###############################
#docker exec -it atlas-doad-1 sed -i's/CORS_ALLOW_ALL: false/CORS_ALLOW_ALL: true/g' /usr/local/site/api-gateway/config/production.yml && \
#docker exec -it atlas-doad-1 svc -du '/service/api-gateway/'
#
#kubectl exec -it atlas-api-gateway-0 -- sed -i's/CORS_ALLOW_ALL: false/CORS_ALLOW_ALL: true/g' /usr/local/site/api-gateway/config/production.yml && \
#kubectl exec -it atlas-api-gateway-0 -- svc -du '/service/api-gateway/'
#######################To reload Atlas-ui(Over)###############################


# export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
As many of you already know, I love socks. I love big socks, little socks, simple socks, and Cookie A. socks.
Number one on my Christmas wish list this year is a subscription to Cookie A's sock club. You receive 12 exclusive Cookie A. sock patterns, 12 cookie recipe's and 6 shipments of yarn. How do you get this wonderful gift? Simply send this link to Cookie's website to your loved ones and hopefully they'll take the hint!
Check out my latest WIP from Cookie's book Knit. Sock. Love.
Recently a knitterly friend posted on