Skip to content

Instantly share code, notes, and snippets.

@chiehpower
Last active July 9, 2020 05:51
Show Gist options
  • Save chiehpower/7b99e0ae8f39a986666541e9119c918e to your computer and use it in GitHub Desktop.
Save chiehpower/7b99e0ae8f39a986666541e9119c918e to your computer and use it in GitHub Desktop.
>>>> ZSH
ZSH_THEME="bunnyruni"
plugins=(git zsh-wakatime)
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/chieh/Downloads/TensorRT7_cuda100/lib
export CUDA_HOME=/usr/local/cuda-10.0
export CUDA_INSTALL_DIR=/usr/local/cuda-10.0
#export CUDNN_INSTALL_DIR=/home/chieh/Downloads/cuda_102_cudnn76
export PATH=$PATH:/usr/local/cuda-10.0/bin
export CUDA_HOME=$CUDA_HOME:/usr/local/cuda-10.0
export PATH=$PATH:~/.local/bin
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
# For TensorRT 7.0.0.11
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/chieh/Downloads/TensorRT7_cuda100/lib
## 2020 01 15 added
export TRT_RELEASE=/home/chieh/Downloads/TensorRT7_cuda100
# For Bazel (Related to Tensorflow.)
export PATH="$PATH:$HOME/bin"
# For tensorflow-to-onnx
export PYTHONPATH=$PYTHONPATH:/home/chieh/github/tensorflow-onnx/tf2onnx
export PATH="${PATH}:/home/chieh/github/bashtop/"
export PATH="${PATH}:/home/chieh/TensorRT7_cuda100/bin/"
# Spark
export SPARK_HOME=/srv/spark
export PYSPARK_PYTHON=python3
export PATH=$SPARK_HOME/bin:$PATH
#export PYSPARK_DRIVER_PYTHON=jupyter
#export PYSPARK_DRIVER_PYTHON_OPTS='notebook'
159,1 Bot
# Tesseract
export TESSDATA_PREFIX=/usr/local/share/tessdata/
@chiehpower
Copy link
Author

Git Command:

If you meet this message below,

$ git pull                                                                                                                                                                               
warning: Pulling without specifying how to reconcile divergent branches is
discouraged. You can squelch this message by running one of the following
commands sometime before your next pull:

  git config pull.rebase false  # merge (the default strategy)
  git config pull.rebase true   # rebase
  git config pull.ff only       # fast-forward only

You can replace "git config" with "git config --global" to set a default
preference for all repositories. You can also pass --rebase, --no-rebase,
or --ff-only on the command line to override the configured default per
invocation.

Already up to date.

Please type this:

git pull --ff-only

You can configure your Git client to always use --ff-only by default, so you get this behavior even if you forget the command-line flag:

git config --global pull.ff only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment