di" delete inside quote
di( delete inside parenthen
d0 delete to begining
import pandas as pd |
# create a file and (name your wish) , then add this content to the file. | |
# OR | |
# sudo vim /etc/systemd/system/jupyter-lab.service | |
# paste code below | |
# Esc , shift z z | |
[Unit] | |
Description=Start Jupyter Lab Server at Boot | |
[Service] |
# Refer code develop by Tyler Marrs | |
# https://tylermarrs.com/posts/pareto-plot-with-matplotlib/ | |
def pareto_plot(df, x, y="Count", title=None, show_pct_y=True, pct_format='{0:.0%}'): | |
xlabel = x | |
ylabel = y | |
df=df.stb.freq([x]) # use sidetable | |
if len(x) >1: | |
df['MergCol'] = df[df.columns[:2]].apply( |
openssl req -newkey rsa:2048 -nodes -keyout client.key -x509 -days 365 -out client.crt |
'h home ^w s ^w v vertical :vs ^w o onelyone :vo
e preview q quit
w preview right side shift-tab
#check python version | |
python -V | |
# install | |
pip3 install virtualenv | |
# create env | |
python3 -m venv base | |
# activate | |
source base/bin/activate | |
# deativate | |
deactivate |
alternating powershell command line to ps as shortcut command
mklink %SystemRoot%\system32\WindowsPowerShell\v1.0\ps.exe %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
git status # | |
git add . # | |
git commit -m my_comment | |
#cach 1 | |
git fetch origin # download remote to local, but not touch to my workspace | |
git diff master origin/master # check what missing from workspace compare to remote | |
git log origin/master ^master #show log compare new from remote | |
git merge master/origin |