public

Updated 4/30/2019

VS Code (1.33)

Where is the settings.json

Python environment

Terminal - with Shell Launcher

Extentions installed

Oracle sqlcl (18.4)

Oracle SQL Developer (18.4)

mssql-cli

I installed mssql-cli on my laptop. It work well but it breaks my Anaconda jupyter environment. I had to stop using it.

No I should not say it breaks the Jupyter, but given it uses the python environment I used for python development, I don’t know a way to specify an interpreter for mssql-cli yet.

Python/Anaconda Environment

git bash (2.2)

It has been a frustration that anaconda put /cygdrive in all of its PATH. I tried to write script to remove the /cygdrive but it will not work when switch env.

I end up modify /etc/fstab ( need to run as administrator), so that c is actually mounted as /cygdrive/c. (git-bash by default mount it as /c ). This will make the conda stuff work.

the only cavity is I when I run python, i need to run “winpty python”

modify

none / cygdrive binary,posix=0,noacl,user 0 0

to 

none /cygdrive cygdrive binary,posix=0,noacl,user 0 0

ente 2020/03 update #

Merge in command line (need to verify)

I have 3 branches, master, office, and home. Let’s say home is behind master:

  1. commit all changes in home if any
  2. git checkout master; git pull (so local master is up to date)
  3. git checkout home (back to home branch)
  4. git merge master (catch up)
  5. git push (let remote know these 2 branches are merged)

git proxy

use following commands to switch proxy

alias gitoffice='git config --global http.proxy http://10.76.225.15:80'
alias githome='git config --global --unset http.proxy'

vim

These are the tricks I can never remember. So I write it down here

  * same line non-greedy match .\{-}
  * multi line non-greedy match \_.\{-}

For example if I want to match

Alter table abc
    drop constrains...
    ...
Go

I would use:

/Alter \_.\{-}GO

Python Environment

Pip dealing with certs:

pip install –trusted-host pypi.org –trusted-host files.pythonhosted.org pip install gensim config --global http.sslVerify false

pip –cert az-elasticsearch-dev.ca.pem install linkchecker

Add cert to anaconda:

conda config –set ssl_verify az-elasticsearch-dev.ca.pem