vault backup: 2024-02-19 16:40:58
This commit is contained in:
@@ -67,80 +67,7 @@ choco upgrade all -y
|
||||
|
||||
## `~/.bashrc`
|
||||
1. 打開`~/.bashrc`。
|
||||
2. 內容如下:
|
||||
```bash
|
||||
export PATH="/c/Users/ahuang11/AppData/Local/Android/Sdk/platform-tools:$PATH"
|
||||
|
||||
##----- Android -----
|
||||
alias adb="/c/EasyAVEngine/Tools/Android/ADB/adb.exe"
|
||||
alias ad='adb devices'
|
||||
alias fastboot='/c/EasyAVEngine/Tools/Android/ADB/fastboot.exe'
|
||||
alias fd='fastboot devices'
|
||||
|
||||
##----- Logitech coding -----
|
||||
alias rrp='cd /c/Python363/lib/site-packages/RobotRun'
|
||||
alias rra='cd /c/RobotRun'
|
||||
alias rrd='cd /g/My\ Drive/codes/Projects/RobotRunDocs'
|
||||
alias rro='cd /c/RobotRun/Output'
|
||||
alias prj='cd /c/Users/awinh/OneDrive/codes/Logitech/project'
|
||||
alias coderrp='cd "/c/Python363/lib/site-packages/RobotRun" ; code "/c/Python363/lib/site-packages/RobotRun"'
|
||||
alias coderra='cd "/c/RobotRun"; code "/c/RobotRun"'
|
||||
alias coderras='code "/d/GoogleDriveLogi/codes/Projects/RobotRunAutoServer"'
|
||||
alias p3='/c/Python363/python.exe'
|
||||
|
||||
##----- Awin coding -----
|
||||
alias codes='cd /c/Users/awinh/OneDrive/codes'
|
||||
alias ctest='code "/g/My Drive/codes/test"'
|
||||
alias jn='C:/Python310/Scripts/jupyter notebook'
|
||||
alias ipy='C:/Python310/Scripts/ipython'
|
||||
|
||||
##----- ELF -----
|
||||
alias hugo='~/OneDrive/文件/BLOG/Hugo/bin/0.98_extend/hugo.exe'
|
||||
|
||||
##----- MISC -----
|
||||
alias sl="/c/Program\ Files/Sublime\ Text/subl.exe"
|
||||
alias e.='explorer.exe .'
|
||||
alias blog="cd ~/OneDrive/文件/BLOG/Hugo/Sites/blog.awin.one"
|
||||
alias ffmpeg="/c/Users/awinh/OneDrive/codes/CommonLib/RobotRunCommonLib/ffmpeg-n5.0-latest-win64-lgpl-shared-5.0/bin/ffmpeg.exe"
|
||||
alias ob="cd ~/OneDrive/文件/Obsidian/Main"
|
||||
alias ffmpeg="/c/Users/awinh/OneDrive/PortableApps/ffmpeg-n5.0-latest-win64-lgpl-shared-5.0/bin/ffmpeg.exe"
|
||||
|
||||
##----- Connection -----
|
||||
alias gods='ssh awin@192.168.1.11'
|
||||
alias gorp320='ssh pi@192.168.1.20'
|
||||
alias gopve='ssh root@192.168.1.21'
|
||||
|
||||
##----- Git -----
|
||||
alias gs="git status"
|
||||
alias gd="git diff"
|
||||
alias gpull='git pull origin master'
|
||||
alias gpush='git push origin master'
|
||||
alias gpushmain='git push origin main'
|
||||
alias gc='git clone'
|
||||
alias gclogi='git clone --config user.name="Awin Huang" --config user.email=ahuang11@logitech.com $@'
|
||||
|
||||
##----- Python enviroment swich -----
|
||||
alias pyv='echo PY_PYTHON=$PY_PYTHON'
|
||||
|
||||
function set_py() {
|
||||
echo "Original Python verison is \"$PY_PYTHON\""
|
||||
export PY_PYTHON=$1
|
||||
echo " New Python verison is \"$PY_PYTHON\""
|
||||
|
||||
if [ ! -z "$2" ]
|
||||
then
|
||||
py "${@:2}"
|
||||
fi
|
||||
}
|
||||
|
||||
function py36() {
|
||||
set_py "3.6.3" "$@"
|
||||
}
|
||||
|
||||
function py310() {
|
||||
set_py "3.10" "$@"
|
||||
}
|
||||
```
|
||||
2. 內容如[[05. 資料收集/軟體工具、設定/bashrc|bashrc]]
|
||||
|
||||
## Setup Windows Terminal
|
||||
1. 開啟Windows Terminal。
|
||||
@@ -10,7 +10,7 @@
|
||||
{"id":"bb0881e617ca2f52","type":"text","text":"[PowerGetActiveScheme](https://learn.microsoft.com/en-us/windows/win32/api/powersetting/nf-powersetting-powergetactivescheme)\n```c\nGUID guid, *scheme = &guid; PowerGetActiveScheme(NULL, &scheme);\n```","x":502,"y":-460,"width":346,"height":125},
|
||||
{"id":"1b7a2018be9a2542","type":"text","text":"- [[設定CPU Power mode]]","x":80,"y":35,"width":250,"height":60},
|
||||
{"id":"034536d7a91d7b62","x":-100,"y":320,"width":133,"height":60,"type":"text","text":"工具設定"},
|
||||
{"id":"197b4dc40754a989","x":-201,"y":460,"width":335,"height":211,"type":"text","text":"- [[Chrome]]\n- [[freefilesync]]\n- [[Obsidian]]\n- [[SublimeText]]\n- [[vim]]\n- [[Visual Studio Code]]\n- [[Windows 11 重灌]]\n- [[Windows Terminal]]"}
|
||||
{"id":"197b4dc40754a989","x":-201,"y":460,"width":335,"height":211,"type":"text","text":"- [[Chrome]]\n- [[freefilesync]]\n- [[Obsidian 操作]]\n- [[SublimeText]]\n- [[vim]]\n- [[Visual Studio Code]]\n- [[Windows 11 重灌]]\n- [[Windows Terminal]]"}
|
||||
],
|
||||
"edges":[
|
||||
{"id":"5c4879a42c2db8ac","fromNode":"d34f3157e07cb50d","fromSide":"top","toNode":"0138bfb5c46d71f1","toSide":"bottom"},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{"id":"b77234a9cdf72aad","type":"text","text":"# 安裝 docker\n[[Docker|Docker]]","x":940,"y":-340,"width":440,"height":120},
|
||||
{"id":"d0711febf5985ed5","type":"text","text":"# 安裝nginx-certbot\n教學: [iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天](https://ithelp.ithome.com.tw/m/articles/10301801\n\nGithub: [JonasAlfredsson/docker-nginx-certbot: Automatically create and renew website certificates for free using the Let's Encrypt certificate authority.](https://github.com/JonasAlfredsson/docker-nginx-certbot)","x":940,"y":-190,"width":440,"height":240},
|
||||
{"id":"b900ad17a2841b99","type":"text","text":"# 安裝 Filebrowser\n[官方安裝流程](https://filebrowser.org/installation#docker)","x":1400,"y":-340,"width":440,"height":120},
|
||||
{"id":"bc030994aafc5a3b","type":"text","text":"![[bashrc]]","x":460,"y":-37,"width":360,"height":177},
|
||||
{"id":"bc030994aafc5a3b","type":"text","text":"![[05. 資料收集/樹莓派/bashrc]]","x":460,"y":-37,"width":360,"height":177},
|
||||
{"id":"f210470376a4829d","type":"text","text":"![[設定Cloudflare DDNS]]","x":460,"y":370,"width":360,"height":150},
|
||||
{"id":"ef9431e16c90f57f","type":"text","text":"設定![[smb client]]","x":460,"y":540,"width":360,"height":180},
|
||||
{"id":"2a7d5efcc0f2dc0e","type":"text","text":"# 安裝 Portainer\n教學: [Portainer:一款圖形化容器管理工具|方格子 vocus](https://vocus.cc/article/643e9f74fd89780001b51739)\n\n官網:[Portainer: Container Management Software for Kubernetes and Docker](https://www.portainer.io/)","x":940,"y":489,"width":440,"height":191},
|
||||
|
||||
@@ -32,10 +32,45 @@ unset THEME
|
||||
"$schema": "https://aka.ms/terminal-profiles-schema",
|
||||
"actions":
|
||||
[
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "copy",
|
||||
"singleLine": false
|
||||
},
|
||||
"keys": "ctrl+c"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "newTab"
|
||||
},
|
||||
"keys": "ctrl+t"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "splitPane",
|
||||
"split": "right"
|
||||
},
|
||||
"keys": "ctrl+shift+e"
|
||||
},
|
||||
{
|
||||
"command": "paste",
|
||||
"keys": "ctrl+v"
|
||||
},
|
||||
{
|
||||
"command": "toggleFullscreen",
|
||||
"keys": "alt+x"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "splitPane",
|
||||
"split": "down"
|
||||
},
|
||||
"keys": "ctrl+shift+o"
|
||||
},
|
||||
{
|
||||
"command": "find",
|
||||
"keys": "ctrl+shift+f"
|
||||
@@ -47,22 +82,6 @@ unset THEME
|
||||
},
|
||||
"keys": "ctrl+pgup"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "copy",
|
||||
"singleLine": false
|
||||
},
|
||||
"keys": "ctrl+c"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "splitPane",
|
||||
"split": "right"
|
||||
},
|
||||
"keys": "ctrl+shift+e"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
@@ -72,29 +91,10 @@ unset THEME
|
||||
},
|
||||
"keys": "alt+shift+d"
|
||||
},
|
||||
{
|
||||
"command": "toggleFullscreen",
|
||||
"keys": "alt+x"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "newTab"
|
||||
},
|
||||
"keys": "ctrl+t"
|
||||
},
|
||||
{
|
||||
"command": "closePane",
|
||||
"keys": "ctrl+w"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "splitPane",
|
||||
"split": "down"
|
||||
},
|
||||
"keys": "ctrl+shift+o"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
@@ -106,9 +106,15 @@ unset THEME
|
||||
"copyFormatting": "none",
|
||||
"copyOnSelect": false,
|
||||
"defaultProfile": "{00000000-0000-0000-ba54-000000000002}",
|
||||
"initialCols": 234,
|
||||
"initialPosition": "16,950",
|
||||
"initialCols": 230,
|
||||
"initialPosition": "50,900",
|
||||
"initialRows": 30,
|
||||
"newTabMenu":
|
||||
[
|
||||
{
|
||||
"type": "remainingProfiles"
|
||||
}
|
||||
],
|
||||
"profiles":
|
||||
{
|
||||
"defaults": {},
|
||||
@@ -128,7 +134,7 @@ unset THEME
|
||||
},
|
||||
"guid": "{41dd7a51-f0e1-4420-a2ec-1a7130b7e950}",
|
||||
"hidden": false,
|
||||
"icon": "C:\\Users\\awinh\\OneDrive\\\u5716\u7247\\icon\\console_red.png",
|
||||
"icon": "%userprofile%/OneDrive/\u5716\u7247/icon/console_red.png",
|
||||
"name": "Windows PowerShell(Administrator)"
|
||||
},
|
||||
{
|
||||
@@ -146,23 +152,23 @@ unset THEME
|
||||
"commandline": "%PROGRAMFILES%/git/usr/bin/bash.exe -i -l",
|
||||
"font":
|
||||
{
|
||||
"face": "CaskaydiaCove NF",
|
||||
"size": 12
|
||||
"face": "Fira Code",
|
||||
"size": 11.0
|
||||
},
|
||||
"guid": "{00000000-0000-0000-ba54-000000000002}",
|
||||
"historySize": 9000,
|
||||
"icon": "%PROGRAMFILES%/Git/mingw64/share/git/git-for-windows.ico",
|
||||
"name": "Bash",
|
||||
"startingDirectory": "C:\\Users\\awinh\\OneDrive\\codes"
|
||||
"startingDirectory": "%SYNODRIVE_PATH%/codes"
|
||||
},
|
||||
{
|
||||
"guid": "{cb5c3884-260a-5acf-98ef-b546d271b4dd}",
|
||||
"guid": "{ee3203b6-a810-5d69-a2fc-42a327122769}",
|
||||
"hidden": false,
|
||||
"name": "Developer Command Prompt for VS 2022",
|
||||
"source": "Windows.Terminal.VisualStudio"
|
||||
},
|
||||
{
|
||||
"guid": "{e6386983-3aa0-5a19-a174-f3c66538b7bd}",
|
||||
"guid": "{bf8c5b3b-1d1e-53ff-bb67-f2b3f5a6c4eb}",
|
||||
"hidden": false,
|
||||
"name": "Developer PowerShell for VS 2022",
|
||||
"source": "Windows.Terminal.VisualStudio"
|
||||
@@ -384,7 +390,10 @@ unset THEME
|
||||
"white": "#C0C0C0",
|
||||
"yellow": "#808000"
|
||||
}
|
||||
]
|
||||
],
|
||||
"tabWidthMode": "titleLength",
|
||||
"themes": [],
|
||||
"useAcrylicInTabRow": true
|
||||
}
|
||||
```
|
||||
|
||||
73
05. 資料收集/軟體工具、設定/bashrc.md
Normal file
73
05. 資料收集/軟體工具、設定/bashrc.md
Normal file
@@ -0,0 +1,73 @@
|
||||
```bash
|
||||
export PATH="/c/Users/ahuang11/AppData/Local/Android/Sdk/platform-tools:$PATH"
|
||||
|
||||
##----- Android -----
|
||||
alias adb="/c/EasyAVEngine/Tools/Android/ADB/adb.exe"
|
||||
alias ad='adb devices'
|
||||
alias fastboot='/c/EasyAVEngine/Tools/Android/ADB/fastboot.exe'
|
||||
alias fd='fastboot devices'
|
||||
|
||||
##----- Logitech coding -----
|
||||
alias rrp='cd /c/Python363/lib/site-packages/RobotRun'
|
||||
alias rra='cd /c/RobotRun'
|
||||
alias rrd='cd /g/My\ Drive/codes/Projects/RobotRunDocs'
|
||||
alias rro='cd /c/RobotRun/Output'
|
||||
alias prj='cd /c/Users/awinh/OneDrive/codes/Logitech/project'
|
||||
alias coderrp='cd "/c/Python363/lib/site-packages/RobotRun" ; code "/c/Python363/lib/site-packages/RobotRun"'
|
||||
alias coderra='cd "/c/RobotRun"; code "/c/RobotRun"'
|
||||
alias coderras='code "/d/GoogleDriveLogi/codes/Projects/RobotRunAutoServer"'
|
||||
alias p3='/c/Python363/python.exe'
|
||||
|
||||
##----- Awin coding -----
|
||||
alias codes='cd /c/Users/awinh/OneDrive/codes'
|
||||
alias ctest='code "/g/My Drive/codes/test"'
|
||||
alias jn='C:/Python310/Scripts/jupyter notebook'
|
||||
alias ipy='C:/Python310/Scripts/ipython'
|
||||
|
||||
##----- ELF -----
|
||||
alias hugo='~/OneDrive/文件/BLOG/Hugo/bin/0.98_extend/hugo.exe'
|
||||
|
||||
##----- MISC -----
|
||||
alias sl="/c/Program\ Files/Sublime\ Text/subl.exe"
|
||||
alias e.='explorer.exe .'
|
||||
alias blog="cd ~/OneDrive/文件/BLOG/Hugo/Sites/blog.awin.one"
|
||||
alias ffmpeg="/c/Users/awinh/OneDrive/codes/CommonLib/RobotRunCommonLib/ffmpeg-n5.0-latest-win64-lgpl-shared-5.0/bin/ffmpeg.exe"
|
||||
alias ob="cd ~/OneDrive/文件/Obsidian/Main"
|
||||
alias ffmpeg="/c/Users/awinh/OneDrive/PortableApps/ffmpeg-n5.0-latest-win64-lgpl-shared-5.0/bin/ffmpeg.exe"
|
||||
|
||||
##----- Connection -----
|
||||
alias gods='ssh awin@AwinDS1513'
|
||||
alias gopi3='ssh awin@awinpi3'
|
||||
alias gopi4='ssh awin@awinpi4'
|
||||
|
||||
##----- Git -----
|
||||
alias gs="git status"
|
||||
alias gd="git diff"
|
||||
alias gpull='git pull origin master'
|
||||
alias gpush='git push origin master'
|
||||
alias gpushmain='git push origin main'
|
||||
alias gc='git clone'
|
||||
alias gclogi='git clone --config user.name="Awin Huang" --config user.email=ahuang11@logitech.com $@'
|
||||
|
||||
##----- Python enviroment swich -----
|
||||
alias pyv='echo PY_PYTHON=$PY_PYTHON'
|
||||
|
||||
function set_py() {
|
||||
echo "Original Python verison is \"$PY_PYTHON\""
|
||||
export PY_PYTHON=$1
|
||||
echo " New Python verison is \"$PY_PYTHON\""
|
||||
|
||||
if [ ! -z "$2" ]
|
||||
then
|
||||
py "${@:2}"
|
||||
fi
|
||||
}
|
||||
|
||||
function py36() {
|
||||
set_py "3.6.3" "$@"
|
||||
}
|
||||
|
||||
function py310() {
|
||||
set_py "3.10" "$@"
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user