---
# System prepended metadata

title: 備忘錄

---

# 備忘錄

<iframe width="100%" height="100" scrolling="yes" frameborder="no" allow="autoplay" src="https://www.youtube.com/embed/aKKs-1AvKps?autoplay=1"></iframe>

## download from google drive

    pip install gdown
    gdown --fuzzy https://drive.google.com/file/d/aaaaaaaaaa/view?usp=sharing


## auto complete from history

    cat >> ~/.inputrc <<'EOF'
    "\e[A": history-search-backward
    "\e[B": history-search-forward
    EOF

    bind -f  ~/.inputrc


##  vscode extensions


code spell checker

<!-- polacode -->
codesnap

save typing

viztracer multiple processes debugging

https://stackoverflow.com/questions/35424367/how-can-i-navigate-back-to-the-last-cursor-position-in-visual-studio-code


## wsl mirrored network

![image](https://hackmd.io/_uploads/H1J4uQTA0.png)



## logo for slides
https://www.flaticon.com/search?word=router




# SSH tunneling 備忘錄



172.5.5.5上的port 5002有一服務，C的防火牆擋A不擋B，可透過B當跳板，使A可access C，若A可ssh連線至B

    ssh -L 8888:172.5.5.5:5002 user@192.168.1.1

此時access localhost:8888 等價於 access 172.5.5.5:5002













![image](https://hackmd.io/_uploads/rk9lTtrzgg.png)






