Skip to main content

Posts

Showing posts from March, 2019

using docker.io/licensefinder/license_finder, and solve erros.

My errors npm ERR! peer dep missing: acorn@^6.0.0, required by acorn-dynamic-import@4.0.0 npm ERR! extraneous: ajv@6.9.1 /scan/node_modules/@angular-devkit/build-webpack/node_modules/ajv Try follows 1) npm install -g npm-check-updates 2) ncu -u 3) npm install 4) npm dedupe 5) npm prune --production 1),2),3) upgrade packages to lastest 4) remove duplicated packages 5) prune for removing extraneous

[Linux/BashScript/Vim] Encrypted vim file, cat util.

cat_vim_file.sh =============== #!/bin/bash usage() {   echo "$1 <filename>" } FILENAME=$1 if [ "$FILENAME" == "" ]; then   usage $0 elif [ -f ${FILENAME} ]; then   echo -n "EnterPassword:"   # Without echo (-s)   read -s szPassword   echo $szPassword| vim -es '+%print' '+:q!' $FILENAME else   echo "FileNotFound: $FILENAME"   usage $0 fi =============== Reference: https://stackoverflow.com/questions/3980668/how-to-get-a-password-from-a-shell-script-without-echoing