$ sudo apt install python3.7 (從官方網站下載後安裝會造成與Samba衝突) 修改~/.bashrc文件:vim ~/.bashrc alias python=python3.7 alias pip="python3.7 -m pip" 重載~/.bashrc文件:source ~/.bashrc 檢查python及pip版本: – python(輸入exi ...
Ctrl+Shift+X 開啟 Extensions(延伸模組) 安裝 Remote Development (by Microsoft) 跟循 https://code.visualstudio.com/docs/remote/troubleshooting 的以下步驟: Quick start: SSH key Improving your security with a dedicated ...
#!/bin/bash checkFolder(){ for name in $1/* do if test -f $name then if awk '/\r$/{exit 0;} 1{exit 1;}' $name then dos2unix -o $name fi elif test -d $name then # echo $name checkFolder $name fi done } ...
"tab_size": 4, "draw_white_space": "all", "translate_tabs_to_spaces": true
Install: $ sudo apt-get install python-virtualenv Make a virtual enviroment with assigned python interpreter: $ virtualenv -p /usr/bin/python3.6 py3.6 Activate the virtual enviroment created in b. $ s ...
vim開啟檔案 -> 輸入: -> 輸入set fileformat=unix -> Enter -> 輸入: -> 輸入wq -> Enter
追蹤特定User的特定Process: #!/bin/sh output_folder="./MemoryTracing" if [ ! -d $output_folder ] then mkdir $output_folder fi file="$output_folder/$(date '+%y%m%d').txt" rm $file while true do now=$(date '+%H ...
在Eclipse中安裝以下兩個Plug-in後重新啟動Eclipse:[su_quote]Remote System Explorer End-User RuntimeRemote System Explorer User Actions[/su_quote] (安裝方法: Help -> Install New Software… -> Add… 「Photon – h ...