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

chiehpower commented May 19, 2020

VS CODE:

[settings.json]

{
    "markdown.marp.export": true, 
    "workbench.colorTheme": "Atom One Dark",
    "window.zoomLevel": 0,
    "C_Cpp.updateChannel": "Insiders",
    "cmake.configureOnOpen": true,
    "workbench.iconTheme": "material-icon-theme",
    "editor.cursorSmoothCaretAnimation": true,
    "editor.smoothScrolling": true,
    "powermode.enabled": true,
    "powermode.shakeIntensity": 0,
    "todo-tree.tree.showScanModeButton": false,
    "todo-tree.highlights.enabled": true,
    "sync.gist": "f9ec05512e8764f4f91e0ee28d7a12af",
    "code-runner.runInTerminal": true,
    "code-runner.defaultLanguage": "python3"
    "editor.formatOnPaste": true
    "code-runner.executorMap": {
        "javascript": "node",
        "java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
        "c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
        "php": "php",
        "python": "python3",
        "perl": "perl",
        "perl6": "perl6",
        "ruby": "ruby",
        "go": "go run",
        "lua": "lua",
        "groovy": "groovy",
        "powershell": "powershell -ExecutionPolicy ByPass -File",
        "bat": "cmd /c",
        "shellscript": "bash",
        "fsharp": "fsi",
        "csharp": "scriptcs",
        "vbscript": "cscript //Nologo",
        "typescript": "ts-node",
        "coffeescript": "coffee",
        "scala": "scala",
        "swift": "swift",
        "julia": "julia",
        "crystal": "crystal",
        "ocaml": "ocaml",
        "r": "Rscript",
        "applescript": "osascript",
        "clojure": "lein exec",
        "haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
        "rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
        "racket": "racket",
        "scheme": "csi -script",
        "ahk": "autohotkey",
        "autoit": "autoit3",
        "dart": "dart",
        "pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
        "d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
        "haskell": "runhaskell",
        "nim": "nim compile --verbosity:0 --hints:off --run",
        "lisp": "sbcl --script",
        "kit": "kitc --run",
        "v": "v run",
        "sass": "sass --style expanded",
        "scss": "scss --style expanded"
    }
    "better-comments.tags": [
        {
          "tag": "!",
          "color": "#FF2D00",
          "strikethrough": false,
          "backgroundColor": "transparent"
        },
        {
          "tag": "?",
          "color": "#3498DB",
          "strikethrough": false,
          "backgroundColor": "transparent"
        },
        {
          "tag": "//",
          "color": "#474747",
          "strikethrough": true,
          "backgroundColor": "transparent"
        },
        {
          "tag": "todo",
          "color": "#FF8C00",
          "strikethrough": false,
          "backgroundColor": "transparent"
        },
        {
          "tag": "*",
          "color": "#98C379",
          "strikethrough": false,
          "backgroundColor": "transparent"
        }
      ]
}

@chiehpower
Copy link
Author

absl-py==0.8.1
alabaster==0.7.8
alive-progress==1.5.1
altair==4.1.0
appdirs==1.4.3
apturl==0.5.2
asciinema==2.0.2
asn1crypto==0.24.0
astor==0.8.0
astroid==2.3.3
atpublic==1.0
attrs==19.3.0
Automat==0.8.0
autopep8==1.5
Babel==2.4.0
backcall==0.1.0
base58==2.0.1
bleach==3.1.0
blinker==1.4
bokeh==2.0.2
boto3==1.14.0
botocore==1.17.0
bottle==0.12.13
Brlapi==0.6.6
cachetools==4.1.0
certifi==2018.1.18
cffi==1.14.0
chardet==3.0.4
chartify==3.0.1
Click==7.0
cloudpickle==0.5.2
colorama==0.4.3
command-not-found==0.3
configobj==5.0.6
constantly==15.1.0
coverage==4.5.4
cryptography==2.1.4
cssselect==1.1.0
cupshelpers==1.0
cycler==0.10.0
Cython==0.29.14
decorator==4.4.1
defer==1.0.6
defusedxml==0.6.0
Detectron==0.0.0
-e git+https://github.com/facebookresearch/detectron2.git@35bb340684265527c5e47a1b616d379986ec7155#egg=detectron2
dill==0.3.1.1
distro==1.5.0
distro-info===0.18ubuntu0.18.04.1
docker==2.5.1
docker-pycreds==0.2.1
docopt==0.6.2
docutils==0.14
dpath==2.0.1
dvc==1.1.7
efficientnet==1.1.0
entrypoints==0.3
enum-compat==0.0.3
fcos==0.1.9
fire==0.2.1
Flask==1.1.1
flatten-json==0.1.7
flufl.lock==3.2
funcy==1.14
future==0.18.2
fvcore==0.1.dev200424
gast==0.2.2
gitdb==4.0.5
GitPython==3.1.3
Glances==2.11.1
google-auth==1.7.1
google-auth-oauthlib==0.4.1
google-images-download==2.8.0
google-pasta==0.1.8
grandalf==0.6
graphsurgeon==0.4.1
grip==4.5.2
grpcio==1.25.0
Guake==3.0.5
h5py==2.10.0
html5lib==0.999999999
httplib2==0.9.2
hyperlink==19.0.0
idna==2.6
imageio==2.6.1
imagesize==0.7.1
imgaug==0.3.0
importlib-metadata==1.1.0
incremental==17.5.0
influxdb==4.1.1
ipdb==0.13.2
ipykernel==5.1.3
ipython==7.15.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
isort==4.3.21
itsdangerous==1.1.0
jedi==0.15.1
jieba==0.42.1
Jinja2==2.10.3
jmespath==0.10.0
joblib==0.14.1
jsonpatch==1.24
jsonpath-ng==1.5.1
jsonpointer==2.0
jsonschema==3.2.0
jupyter==1.0.0
jupyter-client==5.3.4
jupyter-console==6.0.0
jupyter-core==4.6.1
kazam==1.5.3
Keras==2.2.4
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
keras2onnx==1.6.5
keyring==10.6.0
keyrings.alt==3.0
kiwisolver==1.1.0
language-selector==0.1
Lasagne==0.2.dev1
launchpadlib==1.10.6
lazr.restfulclient==0.13.5
lazr.uri==1.0.3
lazy-object-proxy==1.4.3
lmdb==0.98
logilab-common==1.4.1
louis==3.5.0
lxml==4.4.2
macaroonbakery==1.1.3
Mako==1.0.7
Markdown==3.1.1
MarkupSafe==1.1.1
matplotlib==3.1.2
mccabe==0.6.1
mecab-python3==0.996.5
memory-profiler==0.57.0
mistune==0.8.4
mock==4.0.2
more-itertools==8.0.0
multiprocess==0.70.9
nanotime==0.5.2
nbconvert==5.6.1
nbformat==4.4.0
nbval==0.9.4
netifaces==0.10.4
networkx==2.3
ninja==1.9.0.post1
nltk==3.5
notebook==6.0.2
numpy==1.18.2
numpydoc==0.7.0
oauth==1.0.1
oauthlib==3.1.0
olefile==0.45.1
onnx==1.7.0
onnx-simplifier==0.0.0
onnx-tensorrt==0.1.0
onnxconverter-common==1.6.5
onnxruntime==1.2.0
onnxruntime-gpu==1.1.2
opencv-python==4.1.2.30
opencv-python-headless==4.1.2.30
opt-einsum==3.1.0
packaging==19.2
pandas==1.0.4
pandocfilters==1.4.2
parsel==1.5.2
parso==0.5.1
path-and-address==2.0.1
pathos==0.2.5
pathspec==0.8.0
pathtools==0.1.2
pbr==3.1.1
pexpect==4.7.0
pickleshare==0.7.5
Pillow==7.1.2
pluggy==0.13.1
ply==3.11
portalocker==1.7.0
powerline-status==2.6
pox==0.2.7
ppft==1.6.6.1
prometheus-client==0.7.1
prompt-toolkit==3.0.5
Protego==0.1.16
protobuf==3.11.1
psutil==5.4.2
ptyprocess==0.6.0
py==1.8.0
py4j==0.10.7
pyasn1==0.4.8
pyasn1-modules==0.2.7
pycairo==1.16.2
pycocotools==2.0
pycodestyle==2.5.0
pycparser==2.20
pycrypto==2.6.1
pycryptodomex==3.4.7
pycuda==2019.1.2
pycups==1.9.73
pydeck==0.4.0b2
PyDispatcher==2.0.5
pydot==1.4.1
pyflakes==1.6.0
Pygments==2.5.2
pygobject==3.26.1
pygtrie==2.3.2
PyHamcrest==1.9.0
pylint==2.4.4
pymacaroons==0.13.0
PyNaCl==1.1.2
pyOpenSSL==19.1.0
pyparsing==2.4.5
pyRFC3339==1.0
pyrsistent==0.15.6
pysmi==0.2.2
pysnmp==4.4.3
pyspark==2.4.5
pystache==0.5.4
pytesseract==0.3.4
pytest==5.3.2
pytest-cov==2.8.1
python-apt==1.6.5+ubuntu0.2
python-dateutil==2.8.1
python-debian==0.1.32
python-xlib==0.20
pytools==2019.1.1
pytz==2018.3
PyWavelets==1.1.1
pyxdg==0.25
PyYAML==5.2
pyzmq==18.1.1
QtAwesome==0.4.4
qtconsole==4.6.0
QtPy==1.3.1
queuelib==1.5.0
regex==2020.4.4
reportlab==3.4.0
requests==2.24.0
requests-oauthlib==1.3.0
requests-unixsocket==0.1.5
resnest==0.0.2b14042020
roman==2.0.0
rope==0.10.5
rsa==4.0
ruamel.yaml==0.16.10
ruamel.yaml.clib==0.2.0
s3transfer==0.3.3
sacrebleu==1.4.8
scikit-image==0.16.2
scikit-learn==0.22.2.post1
scipy==1.2.1
Scrapy==1.8.0
screen-resolution-extra==0.0.0
seaborn==0.10.1
SecretStorage==2.3.1
selenium==3.8.0
Send2Trash==1.5.0
service-identity==18.1.0
Shapely==1.6.4.post2
shortuuid==1.0.1
shtab==1.1.0
simplegeneric==0.8.1
simplejson==3.13.2
siren-torch==1.0
six==1.13.0
sklearn==0.0
smmap==3.0.4
Sphinx==1.6.7
spyder==3.2.6
ssh-import-id==5.7
streamlit==0.61.0
system-service==0.3
systemd-python==234
tabulate==0.8.7
tensorboard==1.14.0
tensorboardX==2.0
tensorflow-estimator==1.14.0
tensorflow-gpu==1.14.0
tensorrt==7.0.0.11
termcolor==1.1.0
terminado==0.8.3
testpath==0.4.4
# Editable install with no version control (tf2onnx==1.5.4)
-e /home/chieh/.local/lib/python3.6/site-packages
Theano==1.0.4
toml==0.10.1
toolz==0.10.0
torch==1.4.0+cu100
torch2trt==0.0.3
torchfile==0.1.0
torchvision==0.5.0+cu100
tornado==5.1.1
tqdm==4.45.0
traitlets==4.3.3
Twisted==19.10.0
typed-ast==1.4.0
typing==3.7.4.1
typing-extensions==3.7.4.1
tzlocal==2.1
ubuntu-drivers-common==0.0.0
uff==0.6.5
ufw==0.36
unattended-upgrades==0.1
urllib3==1.22
usb-creator==0.3.3
validators==0.15.0
vega-datasets==0.8.0
visdom==0.1.8.9
voluptuous==0.11.7
w3lib==1.21.0
wadllib==1.3.2
wakatime==13.0.7
watchdog==0.10.2
wcwidth==0.1.7
webencodings==0.5.1
websocket-client==0.57.0
Werkzeug==0.16.0
wget==3.2
widgetsnbextension==3.5.1
wrapt==1.11.2
xkit==0.0.0
yacs==0.1.6
zc.lockfile==2.0
zipp==0.6.0
zope.interface==4.3.2

@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